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:
parent
e14c5a93ff
commit
e19a147154
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user