]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix bug in foundation.util.touch 10639/head
authorTakteS <takt96@gmail.com>
Tue, 12 Sep 2017 07:23:29 +0000 (16:23 +0900)
committerTakteS <takt96@gmail.com>
Tue, 12 Sep 2017 07:23:29 +0000 (16:23 +0900)
js/foundation.util.touch.js

index a0d311c0b9595acb350330aef83fee69b06aa9ce..436146d7d236df4bac68b6b08cc226d3ba5e55ce 100644 (file)
@@ -102,7 +102,7 @@ Touch.setupSpotSwipe = function($) {
 Touch.setupTouchHandler = function($) {
   $.fn.addTouch = function(){
     this.each(function(i,el){
-      $(el).bind('touchstart touchmove touchend touchcancel',function(){
+      $(el).bind('touchstart touchmove touchend touchcancel', function(event)  {
         //we pass the original event object because the jQuery event
         //object is normalized to w3c specs and does not provide the TouchList
         handleTouch(event);