From 48b1793592f8ecc11d5898db06c8f68b2569669a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 26 Feb 2013 03:29:06 +0400 Subject: [PATCH] fixed a bug with finger/touch count detection... Signed-off-by: Alex A. Naanou --- layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout.js b/layout.js index 5cab4c2..2bd024b 100755 --- a/layout.js +++ b/layout.js @@ -112,8 +112,8 @@ function makeSwipeHandler(actionA, actionB){ //setTransitionEasing(mag, 'ease-out') setTransitionEasing(mag, 'cubic-bezier(0.33,0.66,0.66,1)') - if(data.fingers == 2){ - actionA($('.current.page')) + if(data.touches >= 2){ + actionB($('.current.page')) } else { actionA($('.current.page')) }