File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -31,21 +31,14 @@ var ScrollListenerMixin = {
31
31
}
32
32
} ,
33
33
34
- shouldComponentUpdate : function ( nextProps , nextState ) {
35
- return (
36
- nextState . scrollTop !== this . state . scrollTop ||
37
- nextState . isScrolling !== this . state . isScrolling
38
- )
39
- } ,
40
-
41
34
_onPageScrollEnd : function ( ) {
42
35
var scrollTop = getScrollTop ( ) ;
43
36
if ( scrollTop === this . state . scrollTop ) {
44
37
win . clearTimeout ( this . _pageScrollTimeout ) ;
45
38
this . setState ( { isScrolling : false } ) ;
46
39
47
40
if ( typeof this . props . onPageScrollEnd === 'function' ) {
48
- this . props . onPageScrollEnd ( scrollTop , isScrolling ) ;
41
+ this . props . onPageScrollEnd ( scrollTop ) ;
49
42
}
50
43
}
51
44
} ,
@@ -67,4 +60,4 @@ var ScrollListenerMixin = {
67
60
}
68
61
} ;
69
62
70
- module . exports = ScrollListenerMixin ;
63
+ module . exports = ScrollListenerMixin ;
You can’t perform that action at this time.
0 commit comments