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

[VisUI] VisScrollPane and DragPane #287

Open
ramiws opened this issue Feb 11, 2018 · 2 comments
Open

[VisUI] VisScrollPane and DragPane #287

ramiws opened this issue Feb 11, 2018 · 2 comments
Labels

Comments

@ramiws
Copy link

ramiws commented Feb 11, 2018

Hi,

Thank you for nice library!

I have around 15 image actors that I need to allow the user to reorder via drag&drop. The issue is visible when, for example, using
visTable.add(new VisScrollPane(dragPane))
and as you might imagine, any attempt to drag an actor result in jumping and flashing of the mimic and the scrolling is doing it's job at the same time.

The ideal fix is of course is to be able to drag, while the scroll kicks in only when you are near the end of the pane. But I assume that would be too difficult to achieve. So a less ambitious way is that during a mimic drag we block the scroll from getting drag events.In order to get that working we also need to start the mimic drag only on longpress/touch. In this less ambitious manner the user needs to drag-drop-scroll, then again drag-drop-scroll in order to get the last actor from the bottom to the top.

I been looking at the sources for few hours, I do not think I can implement the ideal fix. But maybe I can implement the less ambitious work around if I get pointer about:
1- How to start the mimic drag on longpress and not on simple touchdown ?
2- How to block the drag event to go further to the scroll parent during a mimic drag?

@ramiws
Copy link
Author

ramiws commented Feb 27, 2018

So two Vis component does not work together. DragPane does not work when it is inside of VisScrollPane. Is there something I can do to get attention to this? Should I do better job in explaining? I assume it is pretty bad problem if you cannot use DragPane for elements that do not all fit on the mobile screen. Any ideas or pointers at least?

@ramiws
Copy link
Author

ramiws commented May 30, 2018

is this project dead?

@kotcrab kotcrab added the ui label Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants