You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
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?
The text was updated successfully, but these errors were encountered: