diff --git a/webui/src/components/display/blobs/AudioViewer.svelte b/webui/src/components/display/blobs/AudioViewer.svelte index e59b212..2dcde6d 100644 --- a/webui/src/components/display/blobs/AudioViewer.svelte +++ b/webui/src/components/display/blobs/AudioViewer.svelte @@ -62,6 +62,8 @@ color: annotation.get("COLOR") || DEFAULT_ANNOTATION_COLOR, attributes: { "upend-id": annotation.address }, data: (annotation.attr["LBL"] || [])[0]?.value, + drag: editable, + resize: editable, ...fragment, } as RegionParams); } @@ -105,9 +107,9 @@ } else { wavesurfer.disableDragSelection(); } - regions.forEach((region) => - region.update({ drag: detail, resize: detail }) - ); + regions.forEach((region) => { + region.update({ drag: editable, resize: editable }); + }); } async function updateAnnotation(region: Region) {