File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
- * fullPage 3.0.7
2
+ * fullPage 3.0.8
3
3
* https://github.com/alvarotrigo/fullPage.js
4
4
*
5
5
* @license GPLv3 for open source use only
760
760
//coming from closing a normalScrollElements modal or moving outside viewport?
761
761
if ( target == document || ! target ) {
762
762
setMouseHijack ( true ) ;
763
+ options . scrollOverflowHandler . setIscroll ( target , true ) ;
763
764
return ;
764
765
}
765
766
788
789
if ( isNormalScrollTarget || isNormalScrollChildFocused ) {
789
790
if ( ! FP . shared . isNormalScrollElement ) {
790
791
setMouseHijack ( false ) ;
792
+ options . scrollOverflowHandler . setIscroll ( target , false ) ;
791
793
}
792
794
FP . shared . isNormalScrollElement = true ;
793
795
isInsideOneNormalScroll = true ;
798
800
//not inside a single normal scroll element anymore?
799
801
if ( ! isInsideOneNormalScroll && FP . shared . isNormalScrollElement ) {
800
802
setMouseHijack ( true ) ;
803
+ options . scrollOverflowHandler . setIscroll ( target , true ) ;
801
804
FP . shared . isNormalScrollElement = false ;
802
805
}
803
806
}
Original file line number Diff line number Diff line change @@ -2139,7 +2139,7 @@ if ( typeof module != 'undefined' && module.exports ) {
2139
2139
2140
2140
2141
2141
/*!
2142
- * Scrolloverflow 2.0.4 module for fullPage.js >= 3
2142
+ * Scrolloverflow 2.0.5 module for fullPage.js >= 3
2143
2143
* https://github.com/alvarotrigo/fullPage.js
2144
2144
* @license MIT licensed
2145
2145
*
@@ -2397,6 +2397,16 @@ if ( typeof module != 'undefined' && module.exports ) {
2397
2397
} ) ;
2398
2398
} ,
2399
2399
2400
+ // Enables or disables the whole iScroll feature based on the given parameter.
2401
+ setIscroll : function ( target , enable ) {
2402
+ var scrollable = fp_utils . closest ( target , SCROLLABLE_SEL ) || $ ( SCROLLABLE_SEL , target ) [ 0 ] ;
2403
+ var action = enable ? 'enable' : 'disable' ;
2404
+
2405
+ if ( scrollable ) {
2406
+ scrollable . fp_iscrollInstance [ action ] ( ) ;
2407
+ }
2408
+ } ,
2409
+
2400
2410
/**
2401
2411
* Turns off iScroll for the destination section.
2402
2412
* When scrolling very fast on some trackpads (and Apple laptops) the inertial scrolling would
You can’t perform that action at this time.
0 commit comments