mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 12:20:20 +01:00
More responsive start menu
This commit is contained in:
parent
47cda1bd4b
commit
5f663ad9a0
|
|
@ -45,7 +45,10 @@ const useDoubleClick = (
|
|||
}
|
||||
};
|
||||
|
||||
if (singleClick || (!mouseEvent && doubleClickEvent)) {
|
||||
if (
|
||||
(singleClick && !doubleClickEvent) ||
|
||||
(!mouseEvent && doubleClickEvent)
|
||||
) {
|
||||
runHandler();
|
||||
} else if (typeof timer.current === "undefined") {
|
||||
timer.current = window.setTimeout(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user