From ea616ed2a19d42ab92749cfafc4c141adefd0770 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Sat, 25 Oct 2025 23:26:40 +0200 Subject: [PATCH] improving drag'n'drop of locations Signed-off-by: Stephan Richter --- frontend/src/routes/stock/Locations.svelte | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/src/routes/stock/Locations.svelte b/frontend/src/routes/stock/Locations.svelte index 93e2f21..e6d11e4 100644 --- a/frontend/src/routes/stock/Locations.svelte +++ b/frontend/src/routes/stock/Locations.svelte @@ -24,6 +24,11 @@ return false; } + function start_drag(e,loc){ + e.stopPropagation(); + drag_start(loc) + } + function flat(x){ return JSON.parse(JSON.stringify(x)); } @@ -98,12 +103,6 @@ } - -