-
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
Allow drag scroll on mobile when locking horizontal axis #18022
Comments
@Humberd Did you get it to work? I'm having the same issue |
@FMagarik Hey, unfortunately for now I ignored the this feature on my app. |
I finally got it to work by using the cdkDragStartDelay directive recommended by this documentation. A value of 100ms worked for me |
@FMagarik can you close this issue? |
Looks like the original issue was resolved. Closing. |
@crisbeto The original? Can you link it? |
Ah sorry, I thought that the last comment from @FMagarik was referring to the initial issue. |
What are you trying to do?
When on mobile device I try to scroll down by touching a draggable element, that can only by moved left or right, it will initiate dragging instead.
Reproduction
Here is a simple example. Open it on a mobile device.
Try to scroll to the bottom. You can do it freely when not touching a draggable element, but you are unable to do it when touching it. How not to trigger dragging when moving vertically?
https://stackblitz.com/edit/angular-6scebl-mk8i9o?file=app/cdk-drag-drop-axis-lock-example.html
Environment
The text was updated successfully, but these errors were encountered: