Skip to content
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

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

alantreadway
Copy link
Member

@alantreadway alantreadway commented Sep 17, 2024

https://ag-grid.atlassian.net/browse/AG-12887

Stops emission of drag-start interaction event type by default on mousedown or touchdown, so that simple click/touch can end with a click event, without an intermediate drag-state.

As a first pass, simply falls back to emitting drag-start on first mousemove with the mouse button down.

Copy link
Contributor

@jacobp100 jacobp100 left a 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

@alantreadway
Copy link
Member Author

/snapshots

Copy link
Contributor

⏱️ Snapshot update job running: https://github.com/ag-grid/ag-charts/actions/runs/10906274581

@github-actions github-actions bot requested a review from a team as a code owner September 17, 2024 15:36
@alantreadway
Copy link
Member Author

/snapshots

Copy link
Contributor

⏱️ Snapshot update job running: https://github.com/ag-grid/ag-charts/actions/runs/10920195163

yarn.lock Outdated Show resolved Hide resolved
@alantreadway alantreadway changed the title Split mouse-down and drag-start events to reduce false drag start on click cases. AG-12887 - Split mouse-down and drag-start events to reduce false drag start on click cases. Sep 19, 2024
@alantreadway
Copy link
Member Author

/snapshots

Copy link
Contributor

⏱️ Snapshot update job running: https://github.com/ag-grid/ag-charts/actions/runs/10945115305

@alantreadway alantreadway merged commit a46816c into latest Sep 20, 2024
26 checks passed
@alantreadway alantreadway deleted the seperate-click-and-drag-events branch September 20, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants