table-dragger icon indicating copy to clipboard operation
table-dragger copied to clipboard

If there is a Horizontal scroll then the drag and drop does not work

Open Mangesh-P opened this issue 8 years ago • 2 comments

Thanks for a very good plugin it works very nicely there is just on exception where I got stuck Add multiple columns so that you have horizontal scroll (overflow-x:true) . When you start to drag the column beyond the visible scroll view the fakeColumn does below the table and it does not work.

Do you know why that happens. @sindu12jun

Mangesh-P avatar Jan 18 '18 23:01 Mangesh-P

I've consider the situation while developing the plugin, but I failed to figure a idea to solve this problem. Things become really complex in that, maybe you have to find another way.

sindu12jun avatar Jan 19 '18 12:01 sindu12jun

@MangeshPimpalkar, i met this problem too and resolved it. You may check my pen https://codepen.io/jorje/pen/pdWqRB?editors=0010 There are two methods for it. First - commitTableScroll(), in remebers current horizontal scroll when you put mouse down on drag handler, then second - onDragStart() - sets scroll right when you start dragging. May be a crutch, but it works.

souljorje avatar Jan 22 '18 09:01 souljorje