mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-14 19:00:57 +08:00
Cleanup messagelist UpOrDown handling
This commit is contained in:
parent
59f9ccdbdc
commit
b3309f7b4e
1 changed files with 4 additions and 4 deletions
|
@ -256,13 +256,13 @@ export class MailMessageList extends AbstractViewRight {
|
|||
|
||||
this.selector.on('UpOrDown', up => {
|
||||
if (!MessagelistUserStore.hasChecked()) {
|
||||
let page = MessagelistUserStore.page();
|
||||
up ? --page : ++page;
|
||||
up = up ? -1 : 1;
|
||||
const page = MessagelistUserStore.page() + up;
|
||||
if (page > 0 && page <= MessagelistUserStore.pageCount()) {
|
||||
if (SettingsUserStore.usePreviewPane() || MessageUserStore.message()) {
|
||||
this.selector.iSelectNextHelper = up ? -1 : 1;
|
||||
this.selector.iSelectNextHelper = up;
|
||||
} else {
|
||||
this.selector.iFocusedNextHelper = up ? -1 : 1;
|
||||
this.selector.iFocusedNextHelper = up;
|
||||
}
|
||||
this.selector.unselect();
|
||||
this.gotoPage(page);
|
||||
|
|
Loading…
Reference in a new issue