A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
increase speed of keyboard opening
ammarahm-edb45abe5276ad
diff --git a/apps/mobile/index.mobile.js b/apps/mobile/index.mobile.jsindex eeea2111d..4c8ec8556 100644--- a/apps/mobile/index.mobile.js+++ b/apps/mobile/index.mobile.js@@ -57,23 +57,14 @@ let timeout = null;const onChangeTab = async (obj) => {if (obj.i === 1) {- if (timeout) {- clearTimeout(timeout);- timeout = null;+ eSendEvent(eCloseSideMenu);+ if (getIntent()) return;+ if (!editing.currentlyEditing || !getNote()) {+ eSendEvent(eOnLoadNote, {type: 'new'});}- timeout = setTimeout(async () => {- eSendEvent(eCloseSideMenu);- if (getIntent()) return;- await sleep(150);- if (!editing.currentlyEditing || !getNote()) {- console.log('i am called before', getIntent());- eSendEvent(eOnLoadNote, {type: 'new'});- }- }, 150);} else {if (obj.from === 1) {post('blur');- await sleep(150);eSendEvent(eOpenSideMenu);}}