mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 19:22:28 +00:00
feat: rename function
This commit is contained in:
parent
801abbf744
commit
d1ad0ea31b
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue