From 2a9363da74947de5905154fe379d4ec1b06ac13d Mon Sep 17 00:00:00 2001 From: lorp Date: Tue, 30 Apr 2024 16:44:02 +0100 Subject: [PATCH] Bug fixed in dragdrop (axis list was not being reset) --- src/fencer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fencer.js b/src/fencer.js index eda9be7..9743440 100644 --- a/src/fencer.js +++ b/src/fencer.js @@ -565,6 +565,9 @@ function onDropFont (e) { e.preventDefault(); + // delete contents of the axes container + Q("#axes").innerHTML = ""; + // get arrayBuffer from dropped object const file = e.dataTransfer.files[0]; file.arrayBuffer().then(arrayBuffer => {