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 been trying multiple ways to solve it but can't come up with an solution. The problem is that even if you disable scrolling, when creating an event it is possible to scroll with the wheel...
The code i have ben trying is: ret.setHbarPolicy(ScrollBarPolicy.NEVER); ret.setVbarPolicy(ScrollBarPolicy.NEVER); ret.setFitToWidth(true); ret.setFitToHeight(true); ret.addEventFilter(ScrollEvent.SCROLL,new EventHandler<ScrollEvent>() { @Override public void handle(ScrollEvent event) { if (event.getDeltaX() != 0) { event.consume(); } } });
The text was updated successfully, but these errors were encountered:
I have been trying multiple ways to solve it but can't come up with an solution. The problem is that even if you disable scrolling, when creating an event it is possible to scroll with the wheel...
The code i have ben trying is:
ret.setHbarPolicy(ScrollBarPolicy.NEVER); ret.setVbarPolicy(ScrollBarPolicy.NEVER); ret.setFitToWidth(true); ret.setFitToHeight(true); ret.addEventFilter(ScrollEvent.SCROLL,new EventHandler<ScrollEvent>() { @Override public void handle(ScrollEvent event) { if (event.getDeltaX() != 0) { event.consume(); } } });
The text was updated successfully, but these errors were encountered: