Skip to content

Commit 57c974f

Browse files
authored
Merge pull request #36583 from nextcloud/artonge/fix/dont_scroll_hover_files-controls
Prevent scrolling hover .files-controls
2 parents df664ed + 47f406b commit 57c974f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/files/js/files.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@ var dragOptions={
481481
$('.crumbmenu').removeClass('canDropChildren');
482482
},
483483
drag: function(event, ui) {
484+
// Prevent scrolling when hovering .files-controls
485+
if ($(event.originalEvent.target).parents('.files-controls').length > 0) {
486+
return
487+
}
488+
484489
/** @type {JQuery<HTMLDivElement>} */
485490
const scrollingArea = FileList.$container;
486491

0 commit comments

Comments
 (0)