Stereobit / dragend

dragend JS – a touch ready, full responsive, content swipe script
http://stereobit.github.com/dragend/
MIT License
486 stars 113 forks source link

Reversed dragging #54

Open rexors opened 9 years ago

rexors commented 9 years ago

By dragging slowly in reversed direction (eg. from page 2 to 1) and stopping after a few pixels, the page won't scroll to its full and bugs out a little bit.

Especially noticable by setting the 'minDragDistance' to something like 50+ pixels. The bug appears in browsers and on mobile devices.

rexors commented 9 years ago

Fixed it by deleting 'if (parsedEvent.distanceX > 0 || parsedEvent.distanceX > 0)' at line 432.