Prevent dragging on clicking #52

senshu opened this Issue Jun 18, 2011 · 4 comments


None yet

3 participants

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 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?


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 commented Jun 9, 2012

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

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