From 85b227213f19be0fd1f0a371914d434a83df3ada Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Mon, 16 Jul 2018 11:42:27 -0400 Subject: [PATCH] don't page up or down while already paging up or down --- awx/ui/client/features/output/index.controller.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/features/output/index.controller.js b/awx/ui/client/features/output/index.controller.js index 0dca3b527f..5039e83ff1 100644 --- a/awx/ui/client/features/output/index.controller.js +++ b/awx/ui/client/features/output/index.controller.js @@ -97,11 +97,15 @@ function first () { } function next () { - return slide.getNext(); + scroll.pause(); + + return slide.getNext() + .finally(() => scroll.resume()); } function previous () { unfollow(); + scroll.pause(); const initialPosition = scroll.getScrollPosition(); @@ -111,7 +115,8 @@ function previous () { scroll.setScrollPosition(currentHeight - popHeight + initialPosition); return $q.resolve(); - }); + }) + .finally(() => scroll.resume()); } function last () {