You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.
TLDR: If dragged the scrollview should consume/destroy the click event to make sure that the onClick handler of the renderable that was dragged is not activated.
You should set a threshold, as most people will move the mouse a few pixels between press and release (while still being a click), so I'd suggest the following:
If the user drags the mouse to scroll and scrolls at least 1 index, the onClick handler should not be activated.
On mobile, it does not fire a click event when scrolling through touch events.
How are you using this? Are you using the 'moveMove' option?
How can I reproduce this?
IjzerenHein
changed the title
Scrolling by dragging - click event
Using the 'moveMove' option causes click events to be fired when scrolling
Dec 11, 2014
TLDR: If dragged the scrollview should consume/destroy the click event to make sure that the onClick handler of the renderable that was dragged is not activated.
You should set a threshold, as most people will move the mouse a few pixels between press and release (while still being a click), so I'd suggest the following:
If the user drags the mouse to scroll and scrolls at least 1 index, the onClick handler should not be activated.
Original issue on Famous: Famous/famous#211
The text was updated successfully, but these errors were encountered: