Remove messagelist UpOrDown delay

This commit is contained in:
the-djmaze 2023-10-08 14:03:32 +02:00
parent 231ccb1e43
commit 59f9ccdbdc

View file

@ -71,7 +71,6 @@ const
Ymd = dt => dt.getFullYear() + pad2(1 + dt.getMonth()) + pad2(dt.getDate());
let
iGoToUpOrDownTimeout = 0,
sLastSearchValue = '';
export class MailMessageList extends AbstractViewRight {
@ -257,8 +256,6 @@ export class MailMessageList extends AbstractViewRight {
this.selector.on('UpOrDown', up => {
if (!MessagelistUserStore.hasChecked()) {
clearTimeout(iGoToUpOrDownTimeout);
iGoToUpOrDownTimeout = setTimeout(() => {
let page = MessagelistUserStore.page();
up ? --page : ++page;
if (page > 0 && page <= MessagelistUserStore.pageCount()) {
@ -270,7 +267,6 @@ export class MailMessageList extends AbstractViewRight {
this.selector.unselect();
this.gotoPage(page);
}
}, 350);
}
});