mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-23 12:01:48 +00:00
tweeking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1812b5b91b
commit
30fac1c398
@ -124,8 +124,10 @@ $(document).ready(function(){
|
|||||||
setInterval(function(){
|
setInterval(function(){
|
||||||
var c = v.scrollLeft()
|
var c = v.scrollLeft()
|
||||||
if(scroll_state == 'kinetic'
|
if(scroll_state == 'kinetic'
|
||||||
&& (_scroll_offset - c) < SCROLL_STOP_THRESHOLD){
|
&& ((_scroll_offset - c) <= SCROLL_STOP_THRESHOLD
|
||||||
|
|| _scroll_offset - c >= -SCROLL_STOP_THRESHOLD)){
|
||||||
scroll_state = 'none'
|
scroll_state = 'none'
|
||||||
|
log('none...')
|
||||||
v.trigger('scrollstop')
|
v.trigger('scrollstop')
|
||||||
}
|
}
|
||||||
}, SCROLL_CHECK_INTERVAL)
|
}, SCROLL_CHECK_INTERVAL)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user