Broken example.
Closed this issue · 1 comments
rfreitas commented
First thing, great job on the framework, no real complaints so far.
Although, it seems to me that the example you have on the framework's webpage is broken:
jQuery('.mydiv')
.bind('move', function(e) {
// move .mydiv horizontally
jQuery(this).css({ left: e.startX + e.deltaX });
})
.bind('moveend', function() {
// move is complete!
});
the culprit is this line:
left: e.startX + e.deltaX
deltaX never really grows, it only oscillates. A better line would be something like:
left: e.distX
Keep up the good job!