Skip to content

Commit

Permalink
fix #268
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKiaru committed May 16, 2024
1 parent 7d25517 commit 56e82bd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ public class RayCastPositionerSliderAdder implements Runnable {
public RayCastPositionerSliderAdder(BdvHandle bdvh) {
this.bdvh = bdvh;
slider = new JSlider(JSlider.VERTICAL);
slider.addMouseWheelListener(e -> {
int notches = e.getWheelRotation();
System.out.println(notches);
if (notches < 0) {
slider.setValue(slider.getValue() + 1);
} else if (notches > 0) {
slider.setValue(slider.getValue() - 1);
}
});
}

int nPositions;
Expand Down

0 comments on commit 56e82bd

Please sign in to comment.