mirror of
https://github.com/flynx/PortableMag.git
synced 2026-01-07 19:21:15 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
89c6d5191b
commit
73269bb568
@ -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'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user