mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-18 16:26:05 -04:00
fix: #751
This commit is contained in:
parent
51325d2423
commit
37c47fc2dc
@ -81,9 +81,9 @@ public class DecoratorSkin extends SkinBase<Decorator> {
|
|||||||
parent.setPickOnBounds(false);
|
parent.setPickOnBounds(false);
|
||||||
parent.prefHeightProperty().bind(control.prefHeightProperty());
|
parent.prefHeightProperty().bind(control.prefHeightProperty());
|
||||||
parent.prefWidthProperty().bind(control.prefWidthProperty());
|
parent.prefWidthProperty().bind(control.prefWidthProperty());
|
||||||
root.setOnMouseReleased(this::onMouseReleased);
|
root.addEventFilter(MouseEvent.MOUSE_RELEASED, this::onMouseReleased);
|
||||||
root.setOnMouseDragged(this::onMouseDragged);
|
root.addEventFilter(MouseEvent.MOUSE_DRAGGED, this::onMouseDragged);
|
||||||
root.setOnMouseMoved(this::onMouseMoved);
|
root.addEventFilter(MouseEvent.MOUSE_MOVED, this::onMouseMoved);
|
||||||
|
|
||||||
root.getChildren().setAll(parent);
|
root.getChildren().setAll(parent);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user