From 9acfbc4b6bff6a431748d9d5c34c70d8ad945429 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 18 Feb 2013 19:50:09 +0400 Subject: [PATCH] more digging... Signed-off-by: Alex A. Naanou --- layout-iscroll2.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layout-iscroll2.html b/layout-iscroll2.html index cfa04ae..afaca71 100755 --- a/layout-iscroll2.html +++ b/layout-iscroll2.html @@ -104,7 +104,7 @@ $(document).ready(function(){ function(k){console.log(k)})) - logger = Logger() + //logger = Logger() var scrolling = false var _x = null var _t = null @@ -112,10 +112,10 @@ $(document).ready(function(){ // XXX this is a stub, but need to keep the two types of events // seporated as mouse events sometimes interfere with touch events... - if('touchmove' in window){ + if('ontouchmove' in window){ $('.viewer') .on('touchstart', function(){ - logger.log('[touchstart]') + //logger.log('[touchstart]') //_t = evt.timeStamp || Date.now(); scrolling = true togglePageDragging('on') @@ -136,7 +136,7 @@ $(document).ready(function(){ _x = x }) .on('touchend', function(){ - logger.log('[touchend]') + //logger.log('[touchend]') scrolling = false togglePageDragging('off') }) @@ -144,7 +144,7 @@ $(document).ready(function(){ } else { $('.viewer') .on('mousedown', function(){ - logger.log('[touchstart]') + //logger.log('[touchstart]') //_t = evt.timeStamp || Date.now(); scrolling = true togglePageDragging('on') @@ -165,7 +165,7 @@ $(document).ready(function(){ _x = x }) .on('mouseup', function(){ - logger.log('[touchend]') + //logger.log('[touchend]') scrolling = false togglePageDragging('off') })