From 26ae2093e327b645e578151a29a9ed5b7e2fd9a4 Mon Sep 17 00:00:00 2001 From: fanchenio Date: Thu, 23 Nov 2023 10:02:20 +0800 Subject: [PATCH] Add comment. --- electron/main/main/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electron/main/main/index.ts b/electron/main/main/index.ts index 293329e..7621205 100644 --- a/electron/main/main/index.ts +++ b/electron/main/main/index.ts @@ -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); }