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
reduce event delay time
ammarahm-ed75a865a1cba0
diff --git a/apps/mobile/html/Web.bundle/site/init.js b/apps/mobile/html/Web.bundle/site/init.jsindex f514772f7..ef4620234 100755--- a/apps/mobile/html/Web.bundle/site/init.js+++ b/apps/mobile/html/Web.bundle/site/init.js@@ -501,9 +501,9 @@ function setup_tiny(_editor) {let prevCount = 0;function delay(base = 0) {- if (prevCount < 20000) return base + 200;- if (prevCount > 20000 && prevCount < 40000) return base + 400;- if (prevCount > 40000 && prevCount < 70000) return base + 600;+ if (prevCount < 20000) return base + 100;+ if (prevCount > 20000 && prevCount < 40000) return base + 250;+ if (prevCount > 40000 && prevCount < 70000) return base + 500;if (prevCount > 70000) return base + 1000;}@@ -518,7 +518,7 @@ function scrollSelectionIntoView(event) {) {console.log(event);clearTimeout(inputKeyTimer);- inputKeyTimer = setTimeout(function() {+ inputKeyTimer = setTimeout(function () {let node = editor.selection.getNode();if (node) {console.log(node, 'scrolling into view');@@ -631,7 +631,7 @@ function selectchange() {currentFormats.current = {index: range.startOffset,- length: range.endOffset - range.startOffset,+ length: range.endOffset - range.startOffset};currentFormats.fontsize = editor.selection.getNode().style.fontSize;@@ -684,5 +684,5 @@ function selectchange() {}currentFormats.node = editor.selection.getNode().nodeName;reactNativeEventHandler('selectionchange', currentFormats);- }, 300);+ }, 50);}