mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 13:57:39 -02: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 () {
|
function next () {
|
||||||
return slide.getNext();
|
scroll.pause();
|
||||||
|
|
||||||
|
return slide.getNext()
|
||||||
|
.finally(() => scroll.resume());
|
||||||
}
|
}
|
||||||
|
|
||||||
function previous () {
|
function previous () {
|
||||||
unfollow();
|
unfollow();
|
||||||
|
scroll.pause();
|
||||||
|
|
||||||
const initialPosition = scroll.getScrollPosition();
|
const initialPosition = scroll.getScrollPosition();
|
||||||
|
|
||||||
@@ -111,7 +115,8 @@ function previous () {
|
|||||||
scroll.setScrollPosition(currentHeight - popHeight + initialPosition);
|
scroll.setScrollPosition(currentHeight - popHeight + initialPosition);
|
||||||
|
|
||||||
return $q.resolve();
|
return $q.resolve();
|
||||||
});
|
})
|
||||||
|
.finally(() => scroll.resume());
|
||||||
}
|
}
|
||||||
|
|
||||||
function last () {
|
function last () {
|
||||||
|
|||||||
Reference in New Issue
Block a user