File tree Expand file tree Collapse file tree 2 files changed +26
-25
lines changed Expand file tree Collapse file tree 2 files changed +26
-25
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * fullPage 2.2.0
2
+ * fullPage 2.2.1
3
3
* https://github.com/alvarotrigo/fullPage.js
4
4
* MIT licensed
5
5
*
135
135
var slideMoving = false ;
136
136
137
137
var isTouchDevice = navigator . userAgent . match ( / ( i P h o n e | i P o d | i P a d | A n d r o i d | B l a c k B e r r y | B B 1 0 | W i n d o w s P h o n e | T i z e n | B a d a ) / ) ;
138
+ var isTouch = ( ( 'ontouchstart' in window ) || ( navigator . msMaxTouchPoints > 0 ) ) ;
138
139
var container = $ ( this ) ;
139
140
var windowsHeight = $ ( window ) . height ( ) ;
140
141
var isMoving = false ;
1490
1491
* Adds the possibility to auto scroll through sections on touch devices.
1491
1492
*/
1492
1493
function addTouchHandler ( ) {
1493
- if ( isTouchDevice ) {
1494
+ if ( isTouchDevice || isTouch ) {
1494
1495
//Microsoft pointers
1495
1496
MSPointer = getMSPointer ( ) ;
1496
1497
1503
1504
* Removes the auto scrolling for touch devices.
1504
1505
*/
1505
1506
function removeTouchHandler ( ) {
1506
- if ( isTouchDevice ) {
1507
+ if ( isTouchDevice || isTouch ) {
1507
1508
//Microsoft pointers
1508
1509
MSPointer = getMSPointer ( ) ;
1509
1510
You can’t perform that action at this time.
0 commit comments