From 5aacd010c78089ecfe1915c0eda8bae91c50e183 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 23 Jan 2013 16:35:30 +0400 Subject: [PATCH] added pinch gestures... Signed-off-by: Alex A. Naanou --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 3613825..53a39db 100755 --- a/index.html +++ b/index.html @@ -41,6 +41,15 @@ $(document).ready(function(){ //togglePageView('on') togglePageView() }, + + pinchIn: function(event, direction, distance, duration, fingerCount, pinchZoom) { + togglePageView('on') + }, + pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) { + togglePageView('off') + }, + + // XXX for some reason this deos not bubble up the nested elements... click: function(evt, elem){ if($(elem).hasClass('page')){