mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-07-14 05:12:11 +08:00
Add comment.
This commit is contained in:
parent
dfe16dd36c
commit
26ae2093e3
@ -394,6 +394,8 @@ function showFollowMousePosition() {
|
||||
let y = Math.round(bounds.height / 2);
|
||||
// 设置窗口位置
|
||||
global.mainWindow.setPosition(point.x - x, point.y - y);
|
||||
// 调整窗口位置并显示时会出现闪屏的情况
|
||||
// https://github.com/electron/electron/issues/10862
|
||||
for (let i = 0; i < 10; i++) {
|
||||
global.mainWindow.setSize(bounds.width, bounds.height);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user