B4J Question How to inhibit scrolling during a drag

Rattigan_Roger

Member
Licensed User
Longtime User
I am writing an application that uses the Scrollpane with a vertical scrollbar.
The user manipulates objects on the screen though standard dragging (mouse_dragged/mouse_released events)
The problem is that a vertical drag also causes scrolling.
Basically I need a way to inhibit the Scrollpane during a drag.
Thanks in advance for Your time and trouble
 

stevel05

Expert
Licensed User
Longtime User
Have you tried consuming the mouse event whilst dragging?
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
ScrollPane has a Pannable, have you tried setting that to false?
 
Upvote 0
Top