Skip to content

Commit

Permalink
Update kit/src/main/java/com/oracle/javafx/scenebuilder/kit/util/cont…
Browse files Browse the repository at this point in the history
…rol/paintpicker/colorpicker/ColorPicker.java

Co-authored-by: José Pereda <jperedadnr@gmail.com>
  • Loading branch information
leewyatt and jperedadnr authored Mar 12, 2024
1 parent 4ecea8e commit b572ee6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private void initialize() {
hue_slider.pressedProperty().addListener(liveUpdateListener);
alpha_slider.pressedProperty().addListener(liveUpdateListener);

// Fix ColorPicker movement on focus. Now blocks scroll and key events (Home, End, PgUp, PgDn, arrows) to keep it static. For issue #654.
// Disable ColorPicker movement on focus, by blocking scroll and key (Home, End, PgUp, PgDn, arrows) events
picker_scrollpane.addEventFilter(KeyEvent.ANY, Event::consume);
picker_scrollpane.addEventFilter(ScrollEvent.SCROLL, Event::consume);

Expand Down

0 comments on commit b572ee6

Please sign in to comment.