get more events on page down or up when needed

when we page up or down, check if we've moved into the upper or lower
threshold of the scrollbar and request more events to show if we have.
This commit is contained in:
Jake McDermott 2019-07-09 10:21:43 -04:00
parent d4f50896de
commit 90f7e9375f

View File

@ -422,10 +422,18 @@ function menuLast () {
function down () {
scroll.moveDown();
if (scroll.isBeyondLowerThreshold()) {
next();
}
}
function up () {
scroll.moveUp();
if (scroll.isBeyondUpperThreshold()) {
previous();
}
}
function togglePanelExpand () {