]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix sliding behavior on android 6 8805/head
authorKevin Ball <kmball11@gmail.com>
Wed, 18 May 2016 23:36:47 +0000 (16:36 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 18 May 2016 23:36:47 +0000 (16:36 -0700)
js/foundation.slider.js

index d609bc77d8a5d45e97b21b30774e93c74629d35c..dec7b0a50781a3e12c6fa0dfc8a84314869f6a84 100644 (file)
@@ -281,8 +281,8 @@ class Slider {
       var elemOffset = this.$element.offset()[direction];
 
       // touch events emulated by the touch util give position relative to screen, add window.scroll to event coordinates...
-      // best way to guess this is simulated is if screenY ==clientY == pageY
-      if (e.screenY === e.pageY && e.clientY === e.pageY) { eventOffset = eventOffset + windowScroll; }
+      // best way to guess this is simulated is if clientY == pageY
+      if (e.clientY === e.pageY) { eventOffset = eventOffset + windowScroll; }
       var eventFromBar = eventOffset - elemOffset;
       var barXY;
       if (eventFromBar < 0) {