Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
Added touch support for ie10 surface tablets. When touching the slider,
horizontal browser movement is disabled and horizontal sliding is
enabled. Ref issue #230
  • Loading branch information
marcwhitbread committed Mar 23, 2013
1 parent 9ac05fd commit adb0b69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions _src/jquery.iosslider.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* *
* Copyright (c) 2012 Marc Whitbread * Copyright (c) 2012 Marc Whitbread
* *
* Version: v1.1.68 (03/20/2013) * Version: v1.2.0 (03/23/2013)
* Minimum requirements: jQuery v1.4+ * Minimum requirements: jQuery v1.4+
* *
* Advanced requirements: * Advanced requirements:
Expand Down Expand Up @@ -1170,6 +1170,7 @@
zIndex: settings.stageCSS.zIndex, zIndex: settings.stageCSS.zIndex,
'webkitPerspective': 1000, 'webkitPerspective': 1000,
'webkitBackfaceVisibility': 'hidden', 'webkitBackfaceVisibility': 'hidden',
'-ms-touch-action': 'pan-y',
width: stageWidth width: stageWidth
}); });


Expand Down Expand Up @@ -1702,7 +1703,7 @@
} }


$(touchSelection).bind('mousedown.iosSliderEvent touchstart.iosSliderEvent', function(e) { $(touchSelection).bind('mousedown.iosSliderEvent touchstart.iosSliderEvent', function(e) {

if(touchStartFlag) return true; if(touchStartFlag) return true;
touchStartFlag = true; touchStartFlag = true;


Expand Down
Loading

0 comments on commit adb0b69

Please sign in to comment.