angular-drag-and-drop-lists
angular-drag-and-drop-lists copied to clipboard
Dragged element are not scrolling vertically in chrome.
when i am trying to scroll the element after selecting it then page is not getting scrolled.
I'm having a similar problem
same here
Any workaround for this?
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.
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?
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-dragstart
、dnd-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.