From e29741230fc2c162b1ce08aceb6419ac7cd7f5d4 Mon Sep 17 00:00:00 2001 From: Bartek Skorecki <59570853+Barto670@users.noreply.github.com> Date: Sat, 16 Mar 2024 22:51:28 +0000 Subject: [PATCH] fixed bug with dragging image anywhere in the div with id='dropZone' --- templates/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/index.html b/templates/index.html index e4d7479..7d4c798 100644 --- a/templates/index.html +++ b/templates/index.html @@ -59,6 +59,7 @@

rmbg

}); dropZone.addEventListener("dragover", function (e) { + e.preventDefault(); this.classList.add("dragover"); });