The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web
This problem occurs when events are handled in the following order: 1) User clicks down on their mouse which fires the mouseDown event. This results in a Boolean called ‘pressed’ to bet set to true. 2) Browser fires off a mouseMove event which checks if pressed is true, and if so sets a Boolean ‘moved’ to true to indicate the user is click+dragging. 3) User releases mouse which fires mouseUp event. Normally this would then fire the onClick handler, if one exists, but if moved is set to true this doesn’t get called. MouseMove will fire at times even when the mouse is not moving which prevents onClick handlers from firing reliably. This check to see that at least one pixel of movement occurred has alleviated this for me.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by russellsmith and has received 1 comments.