mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 13:34:54 +03:00
feat: rename function
This commit is contained in:
parent
c6facbe253
commit
840e45033c
@ -59,7 +59,7 @@ export function Modal({
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const onMouseUp = (e: MouseEvent) => {
|
||||
const onMouseDown = (e: MouseEvent) => {
|
||||
if (!isTopMostModal()) return;
|
||||
|
||||
const modalContent = document.getElementById(
|
||||
@ -73,8 +73,8 @@ export function Modal({
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("mousedown", onMouseUp);
|
||||
return () => window.removeEventListener("mousedown", onMouseUp);
|
||||
window.addEventListener("mousedown", onMouseDown);
|
||||
return () => window.removeEventListener("mousedown", onMouseDown);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user