mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-07-13 21:02: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 (
|
if (
|
||||||
displays.length > 1 ||
|
displays.length > 1 ||
|
||||||
displays.length === 0 ||
|
displays.length === 0 ||
|
||||||
className !== "Shell_TrayWnd"
|
(className !== "Shell_TrayWnd" && className !== "Shell_SecondaryTrayWnd")
|
||||||
) {
|
) {
|
||||||
// 清除timeout
|
// 清除timeout
|
||||||
clearTimeout(global.doubleClickTaskbarTimer);
|
clearTimeout(global.doubleClickTaskbarTimer);
|
||||||
@ -621,7 +621,8 @@ function doubleClickTaskbar(
|
|||||||
if (
|
if (
|
||||||
global.doubleClickTaskbarCounter &&
|
global.doubleClickTaskbarCounter &&
|
||||||
global.doubleClickTaskbarCounter === 2 &&
|
global.doubleClickTaskbarCounter === 2 &&
|
||||||
mousedownClassName === "Shell_TrayWnd"
|
(mousedownClassName === "Shell_TrayWnd" ||
|
||||||
|
mousedownClassName === "Shell_SecondaryTrayWnd")
|
||||||
) {
|
) {
|
||||||
// 清除timeout
|
// 清除timeout
|
||||||
clearTimeout(global.doubleClickTaskbarTimer);
|
clearTimeout(global.doubleClickTaskbarTimer);
|
||||||
|
Loading…
Reference in New Issue
Block a user