From feee2c745483e0b507a198d98632ae2420400db1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 23 Jan 2013 17:45:42 +0400 Subject: [PATCH] added pinch/swipe weight to pinch handlers (if pinch is smaller than distance, ignore it)... Signed-off-by: Alex A. Naanou --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 24b3f67..a8c1b28 100755 --- a/index.html +++ b/index.html @@ -43,11 +43,17 @@ $(document).ready(function(){ }, pinchIn: function(event, direction, distance, duration, fingerCount, pinchZoom) { + if(pinchZoom < distance){ + return + } if(fingerCount == 2){ togglePageView('on') } }, pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) { + if(pinchZoom < distance){ + return + } if(fingerCount == 2){ togglePageView('off') }