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

Issue in Safari #65

Closed DenisDremkov closed 2 years ago

DenisDremkov commented 5 years ago

Describe the bug Have to work autoscroll in Safari if we drag element to the top or to the bottom of scroll container? How you can see in the video screencast (below) I tried to have autoscroll but it not work. I have added polyfill like you described in the instruction. But I can't understand autoscroll have to work or not? But for touch devices it work perfectly.

To Reproduce https://www.loom.com/share/e1eb3ebf3f87401dbd4d42f3db68e04c

Desktop (please complete the following information):

Smartphone (please complete the following information):

**And Thanks for library! After usage some libraries (CDK...), I guess your solution is the best.

reppners commented 5 years ago

The polyfill for mobile drag drop has this functionality implemented but desktop browsers are not all behaving the same here. Some browsers do autoscroll, others don't.

I don't have any plans to polyfill desktop autoscroll.

But it should be possible to implement yourself, you can take inspiration from the implementation at https://github.com/timruffles/mobile-drag-drop/blob/master/src/scroll-behaviour.ts

reppners commented 2 years ago

Closing as out of scope and implementation can be done on application level.