Skip to content

Commit 43bf52e

Browse files
committed
- Solved problem for Windows 8 Tablets alvarotrigo#160
1 parent e00d6bc commit 43bf52e

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

jquery.fullPage.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* fullPage 2.2.0
2+
* fullPage 2.2.1
33
* https://github.com/alvarotrigo/fullPage.js
44
* MIT licensed
55
*
@@ -135,6 +135,7 @@
135135
var slideMoving = false;
136136

137137
var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|Windows Phone|Tizen|Bada)/);
138+
var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0));
138139
var container = $(this);
139140
var windowsHeight = $(window).height();
140141
var isMoving = false;
@@ -1490,7 +1491,7 @@
14901491
* Adds the possibility to auto scroll through sections on touch devices.
14911492
*/
14921493
function addTouchHandler(){
1493-
if(isTouchDevice){
1494+
if(isTouchDevice || isTouch){
14941495
//Microsoft pointers
14951496
MSPointer = getMSPointer();
14961497

@@ -1503,7 +1504,7 @@
15031504
* Removes the auto scrolling for touch devices.
15041505
*/
15051506
function removeTouchHandler(){
1506-
if(isTouchDevice){
1507+
if(isTouchDevice || isTouch){
15071508
//Microsoft pointers
15081509
MSPointer = getMSPointer();
15091510

0 commit comments

Comments
 (0)