angular-drag-and-drop-lists icon indicating copy to clipboard operation
angular-drag-and-drop-lists copied to clipboard

Dragged element are not scrolling vertically in chrome.

Open mohanmanis opened this issue 8 years ago • 6 comments

when i am trying to scroll the element after selecting it then page is not getting scrolled.

mohanmanis avatar Dec 19 '16 18:12 mohanmanis

I'm having a similar problem

mrgcohen avatar Dec 22 '16 21:12 mrgcohen

same here

hdi-amiri avatar Jan 08 '17 10:01 hdi-amiri

Any workaround for this?

twilly86 avatar Jan 17 '17 14:01 twilly86

There are two pull requests for this that you might want to look. Haven't merged them as I'd like to keep things small and modular, and I believe this could be a separate project that would also work with other directives.

marceljuenemann avatar Jan 17 '17 20:01 marceljuenemann

Similar problem here, any workaround? How can I make the page scroll down when I try to drop an item into a container already has lots of items in it?

aidenZhou avatar Jun 23 '17 19:06 aidenZhou

I met the similar problem and I think the most easiest workaround is using the thinking of PR of #295. Just wrapped the core business of #295 into an ng service and invoke autoscroll service method during the hooks like dnd-dragstartdnd-dragend and etc.

What the autoscroll service looks like depends on the your real scenario. I use perfect-scrolljs to handle my app scroll function. So I only need to invoke the method provided by perfect-scrolljs which in charge of updating scroll container's scrollTop.

On the other scenarios, just wrap the update business(something like window.scrollBy(-this.autoScrollSpeed, 0) mentioned in #295) into other service and invoke them.

Note: Although this cannot fix issue permanently, but normally we met this problem in scrolling vertically.

Hope this helps. Sorry for my poor english.

haoliangwu avatar Dec 27 '17 03:12 haoliangwu