mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: do not call scroll into view on focus
This commit is contained in:
committed by
Abdullah Atta
parent
aa65176bb4
commit
272a321fc8
@@ -174,11 +174,10 @@ export const useEditorEvents = (
|
||||
);
|
||||
|
||||
const tools = useDragState((state) => state.data);
|
||||
|
||||
useEffect(() => {
|
||||
const handleKeyboardDidShow: KeyboardEventListener = () => {
|
||||
editor.commands.keyboardShown(true);
|
||||
editor.postMessage(NativeEvents.keyboardShown, undefined);
|
||||
//editor.postMessage(NativeEvents.keyboardShown, undefined);
|
||||
};
|
||||
const handleKeyboardDidHide: KeyboardEventListener = () => {
|
||||
editor.commands.keyboardShown(false);
|
||||
@@ -191,7 +190,6 @@ export const useEditorEvents = (
|
||||
subscriptions.forEach((subscription) => subscription.remove());
|
||||
};
|
||||
}, [editor.commands, editor.postMessage]);
|
||||
|
||||
useEffect(() => {
|
||||
if (loading) return;
|
||||
if (typeof defaultFontFamily === "object") {
|
||||
|
||||
Reference in New Issue
Block a user