mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
fix unnecessary scroll to parent when opening new tab
This commit is contained in:
@@ -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});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user