Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 616e0f8

Browse files
committed
only trigger the visible tab on scroll
1 parent c42b4a4 commit 616e0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/views/userListVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = Backbone.View.extend({
8080

8181
this.nextUserToShow = this.nextUserToShow >= this.fetchedUsers ? this.nextUserToShow : this.nextUserToShow + this.showPerScroll;
8282

83-
if(this.fetchedUsers < this.totalUsers){
83+
if(this.fetchedUsers < this.totalUsers && this.$el.is(':visible')){
8484
this.trigger('fetchMoreUsers');
8585
}
8686
},

0 commit comments

Comments
 (0)