Prevent dragging on clicking #52

Closed
senshu opened this Issue Jun 18, 2011 · 4 comments

Projects

None yet

3 participants

@senshu
Owner
senshu commented Jun 18, 2011

When clicking in the SVG document, a small mouse movement will be interpreted as a drag action.
Solution : start dragging only after the mouse has moved a minimum distance.

@senshu senshu was assigned Jun 18, 2011
@asyazwan
asyazwan commented Apr 9, 2012

Good to know you've acknowledged this problem. Was about to open a ticket about it. Yes a minimum threshold would be wonderful. But the question then becomes -- what is an acceptable threshold?

@matiascano

I I could avoid this problem by removing the code "u.drag (A.clientX-g, A.clientY-e);" do not think it optimally but it was useful for something particular.

@senshu
Owner
senshu commented Jun 9, 2012

@matiascano Of course, removing the "drag" feature removes the problem :-)

@senshu
Owner
senshu commented Jan 15, 2013

Added a 5-pixel threshold.
See commit fd0dae3

@senshu senshu closed this May 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment