From b93a31f950226e40796873833a08a1f1a269c6bd Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 22 Feb 2023 14:57:29 +0100 Subject: [PATCH] scrollMessage not needed on focusedState change --- dev/View/User/MailBox/MessageView.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dev/View/User/MailBox/MessageView.js b/dev/View/User/MailBox/MessageView.js index 160bdab36..ca6902185 100644 --- a/dev/View/User/MailBox/MessageView.js +++ b/dev/View/User/MailBox/MessageView.js @@ -342,13 +342,6 @@ export class MailMessageView extends AbstractViewRight { } }); - AppUserStore.focusedState.subscribe(value => { - if (Scope.MessageView !== value) { - this.scrollMessageToTop(); - this.scrollMessageToLeft(); - } - }); - keyScopeReal.subscribe(value => this.messageDomFocused(Scope.MessageView === value)); // initShortcuts @@ -463,7 +456,7 @@ export class MailMessageView extends AbstractViewRight { } scrollMessageToTop() { - oMessageScrollerDom().scrollTop = (50 < oMessageScrollerDom().scrollTop) ? 50 : 0; + oMessageScrollerDom().scrollTop = 0; } scrollMessageToLeft() {