From 19efa5bcdb745205ef5a6812480890968a17d1a9 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 18 May 2018 21:10:01 +0200 Subject: Set a drop zone effect to show the correct cursor --- frontend/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/js/app.js b/frontend/js/app.js index 4cb57e3..b68b608 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -164,10 +164,13 @@ function uploadFiles(files) { } function dragOver(event) { + event.stopPropagation(); event.preventDefault(); + event.dataTransfer.dropEffect = 'copy'; } function drop(event) { + event.stopPropagation(); event.preventDefault(); uploadFiles(event.dataTransfer.files || []); } -- cgit v1.2.3