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

fix(drag-drop): events fired multiple times for short drag sequences on touch devices #13135

Merged

Conversation

crisbeto
Copy link
Member

Fixes the started and ended events being fired multiple times for short drag sequences on touch devices. The issue comes from the fact that we listen both for mouse and touch events, which means that we also pick up the fake events that are fired by mobile browsers.

Fixes #13125.

@crisbeto crisbeto added pr: merge safe target: major This PR is targeted for the next major release labels Sep 15, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 15, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: merge safe labels Sep 16, 2018
@jelbourn
Copy link
Member

I finally got drag-drop enabled in Google, so back to not being merge-safe

@ngbot
Copy link

ngbot bot commented Oct 2, 2018

Hi @crisbeto! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

@crisbeto crisbeto force-pushed the 13125/drag-drop-multiple-events branch from 619794f to 8f8bd6d Compare October 3, 2018 18:49
@crisbeto crisbeto added target: patch This PR is targeted for the next patch release and removed target: major This PR is targeted for the next major release labels Oct 18, 2018
@crisbeto crisbeto force-pushed the 13125/drag-drop-multiple-events branch from 8f8bd6d to 2b87abb Compare October 20, 2018 10:22
@crisbeto crisbeto force-pushed the 13125/drag-drop-multiple-events branch from 2b87abb to 21690bc Compare November 8, 2018 08:17
…on touch devices

Fixes the `started` and `ended` events being fired multiple times for short drag sequences on touch devices. The issue comes from the fact that we listen both for mouse and touch events, which means that we also pick up the fake events that are fired by mobile browsers.

Fixes angular#13125.
@crisbeto crisbeto force-pushed the 13125/drag-drop-multiple-events branch from 21690bc to 2cfca06 Compare November 11, 2018 21:26
@andrewseguin andrewseguin merged commit dc0b51a into angular:master Nov 14, 2018
josephperrott pushed a commit that referenced this pull request Nov 19, 2018
…on touch devices (#13135)

Fixes the `started` and `ended` events being fired multiple times for short drag sequences on touch devices. The issue comes from the fact that we listen both for mouse and touch events, which means that we also pick up the fake events that are fired by mobile browsers.

Fixes #13125.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug:(@angular/cdk/drag-drop) - Start end events firing twice Chrome (Android)
4 participants