Adds drag
This commit is contained in:
parent
af55627210
commit
755a8c4070
@ -4,4 +4,5 @@
|
|||||||
}
|
}
|
||||||
#exit:hover{
|
#exit:hover{
|
||||||
-fx-background-color: rgba(0, 0, 255, 0.5);
|
-fx-background-color: rgba(0, 0, 255, 0.5);
|
||||||
|
|
||||||
}
|
}
|
@ -27,6 +27,7 @@ public class Main extends Application {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Drag
|
// Drag
|
||||||
root.lookup("#dank").setOnMouseDragged(event -> {
|
root.lookup("#dank").setOnMouseDragged(event -> {
|
||||||
primaryStage.setX(event.getScreenX());
|
primaryStage.setX(event.getScreenX());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user