-
Notifications
You must be signed in to change notification settings - Fork 149
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
dragstart and dragend fired twice #129
Comments
The easiest way to debug this might be to include the non-minified polyfill which contains console logging. Are you able to override the import to point to |
Yes. Here is the log, where it is not working:
|
Sry it took so long to get back to you! According to the logs no duplicate dispatch of Can you reproduce this in a Plunkr or StackBlitz? |
I am facing the same issue when testing on IPad IOS 12 safari. Work with IPhone though. The touch on draggable element initiated drag start and drag end instantly and emitted MouseEvent. I assume Event is the correct response as it follows dnd-poly dragstart event dispatch. I am still investigating the cause and would greatly appreciate if you can show me some sensible directions. The attached is the log:
UPDATE: |
Thanks for sharing your finding! Maybe the issue creator is also using an iPad with native drag and drop support. |
Adding |
Hi,
I have the problem, that sometimes the dragging does not work. In my polyfill, I have a drag delay of 200ms.
The problem mostly appears, when I hold to drag and start moving "exactly" at 200ms. In a timeline:
Then my draggable element flickers a short moment and keeps in the same position. What I noticed is this: I logged the
dragstart
anddragend
events. When dragging works fine, both events are fired twice like this:But when this problem occurs, the log looks like this:
I tried to listen on the events and stop the propagation for the first
dragstart
anddragend
but I didn't find a solution.Maybe this helps to find the problem and a solution. And hopefully you understand this, I thinks it's difficult to explain 😄
If you think this is not a problem of the mobile-drag-drop shim, just let me know. Could also be a problem of the ng2-dnd which I use in combination with mobile-drag-drop.
The text was updated successfully, but these errors were encountered: