From 78566ae5161f0821a030e53d3935df616efdf1d1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 23 Jan 2013 16:40:26 +0400 Subject: [PATCH] minor tweeking... Signed-off-by: Alex A. Naanou --- index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 53a39db..24b3f67 100755 --- a/index.html +++ b/index.html @@ -43,10 +43,14 @@ $(document).ready(function(){ }, pinchIn: function(event, direction, distance, duration, fingerCount, pinchZoom) { - togglePageView('on') + if(fingerCount == 2){ + togglePageView('on') + } }, pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) { - togglePageView('off') + if(fingerCount == 2){ + togglePageView('off') + } }, @@ -60,7 +64,9 @@ $(document).ready(function(){ //togglePageView('on') } return true - } + }, + + fingers: $.fn.swipe.fingers.ALL }) $('.button.cover').swipe({click: goToMagazineCover}) $('.button.next-article').swipe({click: nextArticle})