1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-10 00:47:19 +00:00

[dir view] getMore: fixup for some cases

This commit is contained in:
llj 2018-09-12 16:48:27 +08:00
parent e14c5a93ff
commit e19a147154

View File

@ -1440,7 +1440,9 @@ define([
var $el = this.$('.cur-view-main-con')[0];
if (this.dir.dirent_more &&
$el.scrollTop > 0 &&
$el.clientHeight + $el.scrollTop == $el.scrollHeight) { // scroll to the bottom
// scroll to the bottom
// '+1': for scrollTop On systems using display scaling
$el.clientHeight + $el.scrollTop + 1 >= $el.scrollHeight) {
this.render_dirents_slice(this.dir.last_start, this.dir.limit);
this.getThumbnail();
}