aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-02-07 13:52:47 +0100
committerLouis Chemineau <louis@chmn.me>2023-02-08 10:51:16 +0100
commit47f406bda748d3436b014b5b11b3e284af6b2b03 (patch)
tree230f327a5e6a57fde0e3d42ebc60a7d79ca41cca /apps
parentee05e01cf43c5e044c551340da650eed3e1c161c (diff)
downloadnextcloud-server-47f406bda748d3436b014b5b11b3e284af6b2b03.tar.gz
nextcloud-server-47f406bda748d3436b014b5b11b3e284af6b2b03.zip
Prevent scrolling hover .files-controls
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-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;