fix unnecessary scroll to parent when opening new tab

This commit is contained in:
zadam
2020-03-10 22:25:57 +01:00
parent e6e41adad0
commit 72745aca29
3 changed files with 14 additions and 35 deletions

View File

@@ -831,4 +831,11 @@ 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});
}
}
}