Skip to content

Commit f23ddca

Browse files
committed
- Fixed bug with IE 11 and touch devices when using autoScrolling:false alvarotrigo#701 alvarotrigo#489
1 parent 3ac0811 commit f23ddca

File tree

2 files changed

+36
-24
lines changed

2 files changed

+36
-24
lines changed

jquery.fullPage.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* fullPage 2.2.6
2+
* fullPage 2.2.7
33
* https://github.com/alvarotrigo/fullPage.js
44
* MIT licensed
55
*
@@ -74,6 +74,12 @@
7474
'height' : '100%'
7575
});
7676

77+
//for IE touch devices
78+
container.css({
79+
'-ms-touch-action': 'none',
80+
'touch-action': 'none'
81+
});
82+
7783
if(element.length){
7884
//moving the container up
7985
silentScroll(element.position().top);
@@ -85,6 +91,12 @@
8591
'height' : 'initial'
8692
});
8793

94+
//for IE touch devices
95+
container.css({
96+
'-ms-touch-action': '',
97+
'touch-action': ''
98+
});
99+
88100
silentScroll(0);
89101

90102
//scrolling the page to the section with no animation
@@ -155,8 +167,7 @@
155167
if($(this).length){
156168
container.css({
157169
'height': '100%',
158-
'position': 'relative',
159-
'-ms-touch-action': 'none'
170+
'position': 'relative'
160171
});
161172

162173
//adding a class to recognize the container internally in the code
@@ -1610,7 +1621,8 @@
16101621
container.css({
16111622
'height': '',
16121623
'position': '',
1613-
'-ms-touch-action': ''
1624+
'-ms-touch-action': '',
1625+
'touch-action': ''
16141626
});
16151627

16161628
//removing added classes

0 commit comments

Comments
 (0)