Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mangesh-P opened this issue Jan 18, 2018 · 2 comments
Open

Comments

@Mangesh-P
Copy link

Mangesh-P commented Jan 18, 2018

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

@sindu12jun
Copy link
Owner

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.

@souljorje
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants