File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1429
1429
1430
1430
stopMedia ( v . activeSection ) ;
1431
1431
1432
+ options . scrollOverflowHandler . beforeLeave ( ) ;
1432
1433
element . addClass ( ACTIVE ) . siblings ( ) . removeClass ( ACTIVE ) ;
1433
1434
lazyLoad ( element ) ;
1434
1435
options . scrollOverflowHandler . onLeave ( ) ;
2907
2908
}
2908
2909
} ,
2909
2910
2911
+ // Turns off iScroll for the leaving section
2912
+ beforeLeave : function ( ) {
2913
+ iscrollHandler . onLeave ( )
2914
+ } ,
2915
+
2910
2916
// Turns on iScroll on section load
2911
2917
afterLoad : function ( ) {
2912
2918
var scroller = $ ( SECTION_ACTIVE_SEL ) . find ( SCROLLABLE_SEL ) . data ( 'iscrollInstance' ) ;
2936
2942
2937
2943
iScrollInstance = new IScroll ( $this . get ( 0 ) , iscrollOptions ) ;
2938
2944
iscrollHandler . iScrollInstances . push ( iScrollInstance ) ;
2945
+
2946
+ //off by default until the section gets active
2947
+ iScrollInstance . wheelOff ( ) ;
2948
+
2939
2949
$this . data ( 'iscrollInstance' , iScrollInstance ) ;
2940
2950
} ) ;
2941
2951
} ,
You can’t perform that action at this time.
0 commit comments