Skip to content

Commit

Permalink
Merge pull request #133 from Blixtdraken/main
Browse files Browse the repository at this point in the history
Changed the scroll speed for the ui
  • Loading branch information
Eirenliel authored Mar 13, 2022
2 parents 74794d8 + c51204e commit 9fa6722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/dev/slimevr/gui/VRServerGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public VRServerGUI(VRServer server) {

this.poseStreamer = new ServerPoseStreamer(server);

add(new JScrollPane(pane = new EJBox(PAGE_AXIS), ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
JScrollPane scrollPane = (JScrollPane) add(new JScrollPane(pane = new EJBox(PAGE_AXIS), ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
scrollPane.getVerticalScrollBar().setUnitIncrement(16);

GraphicsConfiguration gc = getGraphicsConfiguration();
Rectangle screenBounds = gc.getBounds();
setMinimumSize(new Dimension(100, 100));
Expand Down

0 comments on commit 9fa6722

Please sign in to comment.