Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
wip
zadam2d38706ba858
diff --git a/src/public/javascripts/widgets/note_tree.js b/src/public/javascripts/widgets/note_tree.jsindex d304fcc5a2..75ced6fae3 100644--- a/src/public/javascripts/widgets/note_tree.js+++ b/src/public/javascripts/widgets/note_tree.js@@ -831,11 +831,4 @@ export default class NoteTreeWidget extends TabAwareWidget {noteCreateService.duplicateNote(noteId, branch.parentNoteId);}-- async tabNoteSwitchedEvent({tabContext, notePath}) {- // this causes unnecessary scrolling to active note- if (tabContext.isActive()) {- super.tabNoteSwitchedEvent({tabContext, notePath});- }- }}\ No newline at end of filediff --git a/src/public/javascripts/widgets/tab_aware_widget.js b/src/public/javascripts/widgets/tab_aware_widget.jsindex cf23752934..15a52e9bec 100644--- a/src/public/javascripts/widgets/tab_aware_widget.js+++ b/src/public/javascripts/widgets/tab_aware_widget.js@@ -48,7 +48,7 @@ export default class TabAwareWidget extends BasicWidget {async tabNoteSwitchedEvent({tabContext, notePath}) {// if notePath does not match then the tabContext has been switched to another note in the mean time- if (tabContext.notePath === notePath) {+ if (tabContext.isActive() && tabContext.notePath === notePath) {await this.noteSwitched();}}