🔨 适配windows 125%下窗口异常

This commit is contained in:
layyback
2023-04-01 23:08:50 +08:00
parent cffbbaf0dc
commit 5eb07118b0
2 changed files with 10 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ class API {
const { x, y } = screen.getCursorScreenPoint();
const originWindow = this.getCurrentWindow(window, e);
if (!originWindow) return;
originWindow.setBounds({ x: x - mouseX, y: y - mouseY });
originWindow.setBounds({ x: x - mouseX, y: y - mouseY, width, height });
}
public loadPlugin({ data: plugin }, window) {