From 73269bb5688fec300a98dbbf8005166709c8a940 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 19 Feb 2013 05:45:08 +0400 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- layout-iscroll2.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout-iscroll2.html b/layout-iscroll2.html index 0823e2d..ff6a93f 100755 --- a/layout-iscroll2.html +++ b/layout-iscroll2.html @@ -167,6 +167,8 @@ function makeScrollHandler(root, callback){ // get the user coords... prev_x = touch ? event.touches[0].pageX : evt.clientX start = prev_x + + return false } // XXX add limits to this... // XXX try and make this adaptive to stay ahead of the lags... @@ -187,7 +189,7 @@ function makeScrollHandler(root, callback){ //root.trigger('userScroll') } function endMoveHandler(evt){ - x = touch ? event.touches[0].pageX : evt.clientX + x = touch ? event.changedTouches[0].pageX : evt.clientX touch = false scrolling = false scroller.state = 'waiting'