cubiq/iscroll — Issue #146: Click by accident when scrolling on desktop
Author: manfreed
Created: 2011-11-18 13:14:21+00:00
State: open

Hi!

I think something is not quite right with handling click events.

Try this example:
http://jsfiddle.net/B37jn/3/

This is a table forced into a 400x400 box. Each row has a click event, except the header. The problem is, when I try scrolling by dragging with the mouse, accidentaly I fire the click event of one of the rows.

a) Try to scroll the table with mouse (by dragging) randomly. Sometimes the click event fires.
b) Do the drag thing, but before release the mouse button, stop the mouse (so no momentum here). If you release the mouse button the click event fires every time.

I think this is a bug, since click event should only happens when the user clicks directly on something.