From 8b42b6a1651b6e1fe0bfa74b3648b173d214a34c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 18 Feb 2013 19:07:41 +0400 Subject: [PATCH] more digging... Signed-off-by: Alex A. Naanou --- layout-iscroll2.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout-iscroll2.html b/layout-iscroll2.html index 033f40a..57a04d6 100755 --- a/layout-iscroll2.html +++ b/layout-iscroll2.html @@ -120,9 +120,9 @@ $(document).ready(function(){ .on('mousemove touchmove', function(evt){ //var t = evt.timeStamp || Date.now(); - console.log('moving...') evt.preventDefault() - if(evt.touches && evt.touches.length > 0){ + if(evt.touches != null && evt.touches.length > 0){ + console.log('touching!!!') var pos_x = evt.touches[0].pointX } else { var pos_x = evt.clientX @@ -132,7 +132,7 @@ $(document).ready(function(){ _x = pos_x } var x = pos_x - console.log(pos_x) + //console.log(pos_x) if(scrolling){ var s = getMagazineShift() shiftMagazineTo(s + (x - _x))