mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-08 02:36:10 +00:00
fix(studio): commit lane edits through the edited element's own selection
An explicit null selection override now aborts the write instead of falling back to domEditSelection: a caller that resolved a selection for its own element and found none was committing onto whichever element happened to be selected. Ease changes and the playhead keyframe toggle resolve the edited element's animations and selection instead of the current selection's, and lane header rows follow the real label-column width so a narrowed column no longer hangs its value readout over the canvas.
This commit is contained in:
@@ -313,7 +313,7 @@ export function useTimelineEditCallbacks({
|
||||
: 0;
|
||||
// Same frame for read and write: the toggled element's animations decide
|
||||
// add-vs-remove, and its selection is what the mutation commits through.
|
||||
const animations = resolveElementAnimations(el.key ?? el.id);
|
||||
const animations = resolveElementAnimations(getTimelineElementIdentity(el));
|
||||
void buildDomSelectionForTimelineElement(el).then((selection) => {
|
||||
if (!selection) return;
|
||||
const anim = animations.find((a) => a.keyframes);
|
||||
|
||||
Reference in New Issue
Block a user