private boolean isScrolling ( ) { float scrolledX = Math . abs ( accumulatedScrollOffset . x ) ; int expectedScrollX = Math . abs ( width * monthsScrolledSoFar ) ; return scrolledX < expectedScrollX - 5 || scrolledX > expectedScrollX + 5 ; }
as it maybe off by a few pixels