mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
don't page up or down while already paging up or down
This commit is contained in:
parent
62967b2806
commit
85b227213f
@ -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 () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user