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