mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-19 10:43:39 +00:00
Fix window y centering
This commit is contained in:
parent
374a98d22d
commit
c05d945694
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class AppWindowHelper {
|
|||
stage.yProperty().addListener((observable, oldValue, newValue) -> {
|
||||
var n = newValue.doubleValue();
|
||||
var o = oldValue.doubleValue();
|
||||
if (stage.isShowing() && areNumbersValid(o, n) && n == 0.0 && o != 0.0 && Math.abs(n - o) > 100) {
|
||||
if (stage.isShowing() && areNumbersValid(o, n) && n == 0.0 && o != 0.0 && Math.abs(n - o) > 20) {
|
||||
stage.setY(o);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue