Hello! While using a draggable image on top of which we add some clickable elements, we noticed some clicks didn't come through as the user made a slight movement with their mouse while clicking, thus creating a drag event instead.
We added an arbitrary 5 pixels tolerance to the drag event so a click might still happen if the movement is too short.
Hello! While using a draggable image on top of which we add some clickable elements, we noticed some clicks didn't come through as the user made a slight movement with their mouse while clicking, thus creating a drag event instead.
We added an arbitrary 5 pixels tolerance to the drag event so a click might still happen if the movement is too short.
Let me know what you think, thanks!