mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-04 05:52:44 +08:00
scrollMessage not needed on focusedState change
This commit is contained in:
parent
a80bb83ce9
commit
b93a31f950
1 changed files with 1 additions and 8 deletions
|
@ -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));
|
keyScopeReal.subscribe(value => this.messageDomFocused(Scope.MessageView === value));
|
||||||
|
|
||||||
// initShortcuts
|
// initShortcuts
|
||||||
|
@ -463,7 +456,7 @@ export class MailMessageView extends AbstractViewRight {
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollMessageToTop() {
|
scrollMessageToTop() {
|
||||||
oMessageScrollerDom().scrollTop = (50 < oMessageScrollerDom().scrollTop) ? 50 : 0;
|
oMessageScrollerDom().scrollTop = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollMessageToLeft() {
|
scrollMessageToLeft() {
|
||||||
|
|
Loading…
Reference in a new issue