From 90f7e9375f3a13d3116bdfc06ae9f86dc0691e9f Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Tue, 9 Jul 2019 10:21:43 -0400 Subject: [PATCH] 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. --- awx/ui/client/features/output/index.controller.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awx/ui/client/features/output/index.controller.js b/awx/ui/client/features/output/index.controller.js index b9e81caac7..6521f9bc1e 100644 --- a/awx/ui/client/features/output/index.controller.js +++ b/awx/ui/client/features/output/index.controller.js @@ -422,10 +422,18 @@ function menuLast () { function down () { scroll.moveDown(); + + if (scroll.isBeyondLowerThreshold()) { + next(); + } } function up () { scroll.moveUp(); + + if (scroll.isBeyondUpperThreshold()) { + previous(); + } } function togglePanelExpand () {