parent
c9e4a2b927
commit
2e62854fda
|
@ -62,8 +62,6 @@
|
|||
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);
|
||||
}
|
||||
|
@ -107,9 +105,9 @@
|
|||
} else {
|
||||
wavesurfer.disableDragSelection();
|
||||
}
|
||||
regions.forEach((region) => {
|
||||
region.update({ drag: editable, resize: editable });
|
||||
});
|
||||
regions.forEach((region) =>
|
||||
region.update({ drag: detail, resize: detail })
|
||||
);
|
||||
}
|
||||
|
||||
async function updateAnnotation(region: Region) {
|
||||
|
|
Loading…
Reference in New Issue