Revert "fix: audio regions editable state"
This reverts commit 50386c53b1
.
This commit is contained in:
parent
c9e4a2b927
commit
2e62854fda
1 changed files with 3 additions and 5 deletions
|
@ -62,8 +62,6 @@
|
||||||
color: annotation.get("COLOR") || DEFAULT_ANNOTATION_COLOR,
|
color: annotation.get("COLOR") || DEFAULT_ANNOTATION_COLOR,
|
||||||
attributes: { "upend-id": annotation.address },
|
attributes: { "upend-id": annotation.address },
|
||||||
data: (annotation.attr["LBL"] || [])[0]?.value,
|
data: (annotation.attr["LBL"] || [])[0]?.value,
|
||||||
drag: editable,
|
|
||||||
resize: editable,
|
|
||||||
...fragment,
|
...fragment,
|
||||||
} as RegionParams);
|
} as RegionParams);
|
||||||
}
|
}
|
||||||
|
@ -107,9 +105,9 @@
|
||||||
} else {
|
} else {
|
||||||
wavesurfer.disableDragSelection();
|
wavesurfer.disableDragSelection();
|
||||||
}
|
}
|
||||||
regions.forEach((region) => {
|
regions.forEach((region) =>
|
||||||
region.update({ drag: editable, resize: editable });
|
region.update({ drag: detail, resize: detail })
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateAnnotation(region: Region) {
|
async function updateAnnotation(region: Region) {
|
||||||
|
|
Loading…
Reference in a new issue