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 () {