Skip to content

Commit 221441a

Browse files
committed
- Fixed bug: Swiping slides on touch won't work when using autoScrolling:false alvarotrigo#2447
1 parent 914c1a3 commit 221441a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jquery.fullPage.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2541,11 +2541,13 @@
25412541
* Adds the possibility to auto scroll through sections on touch devices.
25422542
*/
25432543
function addTouchHandler(){
2544-
if(options.autoScrolling && (isTouchDevice || isTouch)){
2544+
if(isTouchDevice || isTouch){
25452545
//Microsoft pointers
25462546
var MSPointer = getMSPointer();
25472547

2548-
$body.off('touchmove ' + MSPointer.move).on('touchmove ' + MSPointer.move, preventBouncing);
2548+
if(options.autoScrolling){
2549+
$body.off('touchmove ' + MSPointer.move).on('touchmove ' + MSPointer.move, preventBouncing);
2550+
}
25492551

25502552
$(WRAPPER_SEL)
25512553
.off('touchstart ' + MSPointer.down).on('touchstart ' + MSPointer.down, touchStartHandler)

0 commit comments

Comments
 (0)