don't page up or down while already paging up or down

This commit is contained in:
Jake McDermott 2018-07-16 11:42:27 -04:00
parent 62967b2806
commit 85b227213f
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7

View File

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