summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/js/files.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 0ae049360b4..b0c38248183 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -481,6 +481,11 @@ var dragOptions={
$('.crumbmenu').removeClass('canDropChildren');
},
drag: function(event, ui) {
+ // Prevent scrolling when hovering .files-controls
+ if ($(event.originalEvent.target).parents('.files-controls').length > 0) {
+ return
+ }
+
/** @type {JQuery<HTMLDivElement>} */
const scrollingArea = FileList.$container;