-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AG-12887 - Split mouse-down and drag-start events to reduce false drag start on click cases. #2548
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A while ago I refactored decideInteractionEventTypes
from returning an array to an optional. Might have been a bit premature after this
/snapshots |
⏱️ Snapshot update job running: https://github.com/ag-grid/ag-charts/actions/runs/10906274581 |
641eb35
to
f84f7b8
Compare
/snapshots |
⏱️ Snapshot update job running: https://github.com/ag-grid/ag-charts/actions/runs/10920195163 |
…g start on click cases.
ead843f
to
8504a84
Compare
/snapshots |
⏱️ Snapshot update job running: https://github.com/ag-grid/ag-charts/actions/runs/10945115305 |
1898687
to
0047322
Compare
https://ag-grid.atlassian.net/browse/AG-12887
Stops emission of
drag-start
interaction event type by default onmousedown
ortouchdown
, so that simple click/touch can end with aclick
event, without an intermediate drag-state.As a first pass, simply falls back to emitting
drag-start
on firstmousemove
with the mouse button down.