mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-07-13 12:52:10 +08:00
optimize the problem of accidental double-clicking on the taskbar.
This commit is contained in:
parent
ac9c8c834f
commit
607ff84af9
@ -597,7 +597,7 @@ function doubleClickTaskbar(
|
||||
if (
|
||||
displays.length > 1 ||
|
||||
displays.length === 0 ||
|
||||
className !== "Shell_TrayWnd"
|
||||
(className !== "Shell_TrayWnd" && className !== "Shell_SecondaryTrayWnd")
|
||||
) {
|
||||
// 清除timeout
|
||||
clearTimeout(global.doubleClickTaskbarTimer);
|
||||
@ -621,7 +621,8 @@ function doubleClickTaskbar(
|
||||
if (
|
||||
global.doubleClickTaskbarCounter &&
|
||||
global.doubleClickTaskbarCounter === 2 &&
|
||||
mousedownClassName === "Shell_TrayWnd"
|
||||
(mousedownClassName === "Shell_TrayWnd" ||
|
||||
mousedownClassName === "Shell_SecondaryTrayWnd")
|
||||
) {
|
||||
// 清除timeout
|
||||
clearTimeout(global.doubleClickTaskbarTimer);
|
||||
|
Loading…
Reference in New Issue
Block a user