summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis <6653109+artonge@users.noreply.github.com>2023-02-08 12:00:12 +0100
committerGitHub <noreply@github.com>2023-02-08 12:00:12 +0100
commit57c974f421e8a409ef728fae0b1ac670a70c7f11 (patch)
treed1405e6e488c97d5e842dc7103dfdbbdc0c59732
parentdf664ed073be8a859db01ca0efc1b76280359c44 (diff)
parent47f406bda748d3436b014b5b11b3e284af6b2b03 (diff)
downloadnextcloud-server-57c974f421e8a409ef728fae0b1ac670a70c7f11.tar.gz
nextcloud-server-57c974f421e8a409ef728fae0b1ac670a70c7f11.zip
Merge pull request #36583 from nextcloud/artonge/fix/dont_scroll_hover_files-controls
Prevent scrolling hover .files-controls
-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;