Reputation: 8926
Is it possible to move vertically and horizontally without using scrollbar in ScrollPane
i want to scroll when left mouse button pressed and mouse moved to right, left, top and down . Should i add listener or something like that ?
thanks in advance.
Upvotes: 4
Views: 3447
Reputation: 209724
Just call
scrollPane.setPannable(true);
or, if you are using FXML
<ScrollPane pannable="true" ... >
Upvotes: 13