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
drag-drop: Drag delay does not allow scrolling on mobile devices #16224
Comments
) The current implementation of the drag start delay does not allow scrolling on mobile devices. Instead, the draggable element gets teleported to the cursor once the delay is elapsed. In order to handle this use case, we cancel the drag sequence if the cursor moves before the drag start delay is elapsed and we disable native drag interactions only when the drag sequence is started instead of when it is initialized. The drag start delay was also integrated to the drag drop demo. Fixes #16224
…ular#16224) The current implementation of the drag start delay does not allow scrolling on iOS devices. Also, once the element has been scrolled once, the scrolling is never reenabled. In order to fix this issue, we prevent default behaviour of pointer events fired after the drag sequence has been started instead of initialized. Also, we toggle native drag interactions when the drag sequence is ended.
So it seems like there is still an issue with this. The native drag interactions are not toggled when the drag sequence is ended, which makes scrolling impossible after the item has been dragged once. Also, it does not work at all on iOS. I made another PR to fix this. |
…ular#16224) The current implementation of the drag start delay does not allow scrolling on iOS devices. Also, once the element has been scrolled once, the scrolling is never reenabled. In order to fix this issue, we prevent default behaviour of pointer events fired after the drag sequence has been started instead of initialized. Also, we toggle native drag interactions when the drag sequence is ended.
…ular#16224) The current implementation of the drag start delay does not allow scrolling on iOS devices. Also, once the element has been scrolled once, the scrolling is never reenabled. In order to fix this issue, we prevent default behaviour of pointer events fired after the drag sequence has been started instead of initialized. Also, we toggle native drag interactions when the drag sequence is ended.
…ular#16228) The current implementation of the drag start delay does not allow scrolling on mobile devices. Instead, the draggable element gets teleported to the cursor once the delay is elapsed. In order to handle this use case, we cancel the drag sequence if the cursor moves before the drag start delay is elapsed and we disable native drag interactions only when the drag sequence is started instead of when it is initialized. The drag start delay was also integrated to the drag drop demo. Fixes angular#16224 (cherry picked from commit 738f10c)
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. |
Reproduction
StackBlitz: https://angular-wls93x.stackblitz.io
Steps to reproduce:
Expected Behavior
Since the drag start delay was not elapsed when the scroll intention, I was expecting
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: