reppners / ngx-drag-drop

Angular directives using the native HTML Drag And Drop API
https://reppners.github.io/ngx-drag-drop/
BSD 3-Clause "New" or "Revised" License
299 stars 118 forks source link

dndMoved fires when draggable element is out of the dropzone [Chrome] #52

Closed ReactionCode closed 5 years ago

ReactionCode commented 5 years ago

Describe the bug On Google Chrome dndMoved fires when you drop an element out of the dropZone, this occurs only when you move the draggable element out of the dropZone by the bottom side in a slow way. If you does in a fast way works fine.

To Reproduce You can reproduce it in all your examples: https://reppners.github.io/ngx-drag-drop/

Steps to reproduce the behavior:

  1. Go to List example
  2. Drag one element slowly out of the dropZone from bottom side
  3. You will see the placeholder doesn't dissapear and if you drop the element the element will not be dropped and the original element will be removed because fires the dndMoved event
reppners commented 5 years ago

Hi :)

Thanks for reporting and the detailed description.

I tried to reproduce on macOS Mojave with Chrome Version 70.0.3538.110 and Safari 12 but it worked no matter how slow I dragged an item out of the bottom of a dropzone.

What OS and Chrome version did you use?

ReactionCode commented 5 years ago

Hi Stefan.

OS: Ubuntu 18.04.1 LTS Browser: Google Chrome - 70.0.3538.110

See this video example: https://streamable.com/j24ii

I tried the same behaviour on Dragular DnD demos and works fine with Chrome.

On Firefox and Opera works fine, only fails on Chrome.

Thanks!!

reppners commented 5 years ago

Could not reproduce on Ubuntu 18.04.1 LTS with Chrome 70.0.3538.77 :man_shrugging:

Any ideas what could be special about your environment?

ReactionCode commented 5 years ago

Thanks for your interest.

I tested it in other enviromers (mobile and windows) and all works fine, so if you tell me this I guess could be a weird issue in my browser or is a bug on chrome 70.....110 on Ubuntu.

Also if nobody have the same issue in ubuntu, I think we can close this issue.

I will hope next chrome version fix my case.

Thanks for your nice DnD!

reppners commented 5 years ago

Closing due to inactivity and not being able to reproduce so far