Skip to content

Commit

Permalink
create maxLimit var
Browse files Browse the repository at this point in the history
  • Loading branch information
DevArtemNuss authored and donnyquixotic committed Sep 14, 2022
1 parent 08ec011 commit 4b950f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/trails/ballots/list/BallotsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default {
startY: 0,
timerAction: null,
limit: 50,
maxLimit: 300
};
},
props: {
Expand Down Expand Up @@ -77,7 +78,7 @@ export default {
async onLoad(status) {
let scrollY = window.scrollY;
if (
(scrollY > this.startY && this.limit !== 300) ||
(scrollY > this.startY && this.limit !== this.maxLimit) ||
status === true
) {
this.$refs.infiniteScroll.resume();
Expand Down

0 comments on commit 4b950f4

Please sign in to comment.