-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(cdk/drag-drop): Cannot drag without scrolling on mobile devices. #21749
Labels
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jan 30, 2021
In angular#21382 the `preventDefault` call was moved further down so it doesn't prevent events until the dragging threshold has been reached. The problem is that it'll only start calling `preventDefault` from the first event __after__ the threshold has been reached which can be enough time for the device to start scrolling. These changes add an extra call as soon as dragging has been considered as "started". Fixes angular#21749.
crisbeto
added
area: cdk/drag-drop
has pr
P2
The issue is important to a large percentage of users, with a workaround
and removed
needs triage
This issue needs to be triaged by the team
labels
Jan 30, 2021
@crisbeto Yes you are correct. Thanks for looking into this. |
annieyw
pushed a commit
that referenced
this issue
Feb 5, 2021
In #21382 the `preventDefault` call was moved further down so it doesn't prevent events until the dragging threshold has been reached. The problem is that it'll only start calling `preventDefault` from the first event __after__ the threshold has been reached which can be enough time for the device to start scrolling. These changes add an extra call as soon as dragging has been considered as "started". Fixes #21749.
annieyw
pushed a commit
that referenced
this issue
Feb 5, 2021
In #21382 the `preventDefault` call was moved further down so it doesn't prevent events until the dragging threshold has been reached. The problem is that it'll only start calling `preventDefault` from the first event __after__ the threshold has been reached which can be enough time for the device to start scrolling. These changes add an extra call as soon as dragging has been considered as "started". Fixes #21749. (cherry picked from commit 060ab9e)
annieyw
pushed a commit
that referenced
this issue
Feb 5, 2021
In #21382 the `preventDefault` call was moved further down so it doesn't prevent events until the dragging threshold has been reached. The problem is that it'll only start calling `preventDefault` from the first event __after__ the threshold has been reached which can be enough time for the device to start scrolling. These changes add an extra call as soon as dragging has been considered as "started". Fixes #21749. (cherry picked from commit 060ab9e)
wagnermaciel
pushed a commit
to wagnermaciel/components
that referenced
this issue
Feb 8, 2021
In angular#21382 the `preventDefault` call was moved further down so it doesn't prevent events until the dragging threshold has been reached. The problem is that it'll only start calling `preventDefault` from the first event __after__ the threshold has been reached which can be enough time for the device to start scrolling. These changes add an extra call as soon as dragging has been considered as "started". Fixes angular#21749.
wagnermaciel
pushed a commit
to wagnermaciel/components
that referenced
this issue
Feb 8, 2021
In angular#21382 the `preventDefault` call was moved further down so it doesn't prevent events until the dragging threshold has been reached. The problem is that it'll only start calling `preventDefault` from the first event __after__ the threshold has been reached which can be enough time for the device to start scrolling. These changes add an extra call as soon as dragging has been considered as "started". Fixes angular#21749.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
This change (#21227) has broken dragging on mobile devices. On mobile dragging will also trigger scroll. To reproduce go here on a mobile device or use chrome's toggle device tool bar: https://material.angular.io/cdk/drag-drop/examples
Reproduction
Steps to reproduce:
Expected Behavior
Screen should not scroll while dragging. You can see the desired behavior here: https://v10.material.angular.io/cdk/drag-drop/examples
Actual Behavior
Screen/Document scrolls while dragging
Environment
The text was updated successfully, but these errors were encountered: