minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-19 05:45:08 +04:00
parent 89c6d5191b
commit 73269bb568

View File

@ -167,6 +167,8 @@ function makeScrollHandler(root, callback){
// get the user coords... // get the user coords...
prev_x = touch ? event.touches[0].pageX : evt.clientX prev_x = touch ? event.touches[0].pageX : evt.clientX
start = prev_x start = prev_x
return false
} }
// XXX add limits to this... // XXX add limits to this...
// XXX try and make this adaptive to stay ahead of the lags... // XXX try and make this adaptive to stay ahead of the lags...
@ -187,7 +189,7 @@ function makeScrollHandler(root, callback){
//root.trigger('userScroll') //root.trigger('userScroll')
} }
function endMoveHandler(evt){ function endMoveHandler(evt){
x = touch ? event.touches[0].pageX : evt.clientX x = touch ? event.changedTouches[0].pageX : evt.clientX
touch = false touch = false
scrolling = false scrolling = false
scroller.state = 'waiting' scroller.state = 'waiting'