mirror of
https://github.com/zadam/trilium.git
synced 2026-02-28 09:33:38 +01:00
chore(mobile): fix warnings in mobile_editor_toolbar
This commit is contained in:
parent
5ec9770b07
commit
fc59ee6e93
@ -70,7 +70,7 @@ function usePositioningOniOS(enabled: boolean, wrapperRef: MutableRef<HTMLDivEle
|
||||
if (!wrapperRef.current) return;
|
||||
const bottom = window.innerHeight - (window.visualViewport?.height || 0);
|
||||
wrapperRef.current.style.bottom = `${bottom}px`;
|
||||
}, []);
|
||||
}, [ wrapperRef ]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isIOS() || !enabled) return;
|
||||
@ -82,7 +82,7 @@ function usePositioningOniOS(enabled: boolean, wrapperRef: MutableRef<HTMLDivEle
|
||||
window.visualViewport?.removeEventListener("resize", adjustPosition);
|
||||
window.removeEventListener("scroll", adjustPosition);
|
||||
};
|
||||
}, [ enabled ]);
|
||||
}, [ enabled, adjustPosition ]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user