Browse Source

Fix window scroll container (#16009)

Fix window scroll container
tags/v17.0.0beta1
John Molakvoæ 5 years ago
parent
commit
552657223a
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      apps/files/js/filelist.js

+ 2
- 2
apps/files/js/filelist.js View File

@@ -3523,9 +3523,9 @@
var _this = this;
var $scrollContainer = this.$container;
if ($scrollContainer[0] === window) {
// need to use "body" to animate scrolling
// need to use "html" to animate scrolling
// when the scroll container is the window
$scrollContainer = $('body');
$scrollContainer = $('html');
}
$scrollContainer.animate({
// Scrolling to the top of the new element

Loading…
Cancel
Save