From f29cd023b3cae71ac146ab7317e4ec35910ffceb Mon Sep 17 00:00:00 2001 From: JB Christy Date: Wed, 13 Mar 2013 20:12:45 -0700 Subject: [PATCH] fix swipe in clearing update clearing to use event with .touches property, which may be e.originalEvent --- js/foundation/foundation.clearing.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/foundation/foundation.clearing.js b/js/foundation/foundation.clearing.js index c8ff32499..96ae0e2ab 100644 --- a/js/foundation/foundation.clearing.js +++ b/js/foundation/foundation.clearing.js @@ -101,6 +101,7 @@ $(this.scope) .on('touchstart.fndtn.clearing', '.visible-img', function(e) { + if (!e.touches) { e = e.originalEvent; } var data = { start_page_x: e.touches[0].pageX, start_page_y: e.touches[0].pageY, @@ -113,6 +114,7 @@ e.stopPropagation(); }) .on('touchmove.fndtn.clearing', '.visible-img', function(e) { + if (!e.touches) { e = e.originalEvent; } // Ignore pinch/zoom events if(e.touches.length > 1 || e.scale && e.scale !== 1) return; -- 2.47.3