mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 03:00:09 +00:00
added a during scroll callback to scroller...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cbf94cc985
commit
429ba7f1b2
@ -178,6 +178,8 @@ function makeScrollHandler(root, config){
|
||||
prev_t = t
|
||||
|
||||
options.enableUserScrollEvent && root.trigger('userScroll')
|
||||
// XXX do we need to pass something to this?
|
||||
options.scrollCallback && options.scrollCallback()
|
||||
}
|
||||
return false
|
||||
}
|
||||
@ -274,13 +276,6 @@ function makeScrollHandler(root, config){
|
||||
// i.e. the callback will get called with the "cancelling" state.
|
||||
scrollCancelThreshold: 100,
|
||||
|
||||
// these control weather in-scroll events will get triggered.
|
||||
// NOTE: these may impact performance, especially the scroll
|
||||
// event, thus they need to enabled explicitly.
|
||||
enabelStartEvent: false,
|
||||
enableUserScrollEvent: false,
|
||||
enableEndEvent: false,
|
||||
|
||||
/*
|
||||
// XXX padding within the target element moving out of which
|
||||
// will cancell the action...
|
||||
@ -289,8 +284,17 @@ function makeScrollHandler(root, config){
|
||||
eventBounds: 5,
|
||||
*/
|
||||
|
||||
// these control weather in-scroll events will get triggered.
|
||||
// NOTE: these may impact performance, especially the scroll
|
||||
// event, thus they need to enabled explicitly.
|
||||
enabelStartEvent: false,
|
||||
enableUserScrollEvent: false,
|
||||
enableEndEvent: false,
|
||||
|
||||
// callback to be called when the user first touches the screen...
|
||||
preCallback: null,
|
||||
// callback to be called when a scroll step is done...
|
||||
scrollCallback: null,
|
||||
// callback to be called when the user lifts a finger/mouse.
|
||||
// NOTE: this may happen before the scroll is done, for instance
|
||||
// when one of several fingers participating in the action
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user