mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed A/D in pager not respecting result boundary
This commit is contained in:
@ -62,8 +62,16 @@ App.Presenters.PagerPresenter = function(
|
||||
.fail(loaded);
|
||||
|
||||
if (!endlessScroll) {
|
||||
keyboard.keydown('a', function() { syncUrl({page: pager.getPage() - 1}); });
|
||||
keyboard.keydown('d', function() { syncUrl({page: pager.getPage() + 1}); });
|
||||
keyboard.keydown('a', function() {
|
||||
if (pager.prevPage()) {
|
||||
syncUrl({page: pager.getPage()});
|
||||
}
|
||||
});
|
||||
keyboard.keydown('d', function() {
|
||||
if (pager.nextPage()) {
|
||||
syncUrl({page: pager.getPage()});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user