mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
don't page up or down while already paging up or down
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user