From 272a321fc869718fab3b152bd9fe197777ddf4e2 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 10 Mar 2025 10:29:44 +0500 Subject: [PATCH] mobile: do not call scroll into view on focus --- apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx index ddc67a4ea..5ebc74a05 100644 --- a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx +++ b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx @@ -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") {