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
307 stars 120 forks source link

iOS Support #9

Closed mzarnitsa closed 6 years ago

mzarnitsa commented 6 years ago

Guys, tried to use your control. Works great in all desktop browsers I tried. Howerver, on iOS Safari, both iPhone and iPad drag simply doesn't start at all. It all just goes to scroll.

Tried your examples at https://reppners.github.io/ngx-drag-drop/, also a mess. Doesn't draw correctly, drag doesn't work.

Any plans on addressing that?

reppners commented 6 years ago

Thanks for trying out the library and providing feedback!

Touch support is provided by the polyfill mentioned in the README. However I forgot to add the workaround needed for Safari that enables to prevent scroll when dragging. Will push a fix for this in a minute.

The demos are not tuned for mobile yet. PR's are welcome to improve the demos 😄

mzarnitsa commented 6 years ago

Thanks, I'll give polyfills a try. Missed that in the readme.

reppners commented 6 years ago

I'm going to make that more prominent - you're not the first one to ask on how touch support is established.

reppners commented 6 years ago

Readme updated :)