more cleanup and refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-26 14:53:25 +04:00
parent f417236a72
commit b4a16ed0c4

View File

@ -358,6 +358,7 @@ function makeScrollHandler(root, config){
.off('touchstart', startMoveHandler)
.off('touchmove', moveHandler)
.off('touchend', endMoveHandler)
.off('touchcancel', endMoveHandler)
} else {
root
.off('mousedown', startMoveHandler)
@ -405,7 +406,8 @@ function makeScrollHandler(root, config){
// this differs from what postScrollCallback actually gets in the
// same field when it recieves the object.
// XXX add generic snap
// XXX add generic innertial scroll
// XXX add generic innertial scroll
// ...see jli.js/animateElementTo for a rough implementation
// XXX test multiple touches...
function postScrollCallback(data){
var scroller = data.scroller