mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
fix(studio): static-position drag no longer freezes an element beside an animated rotation (#2016)
## What Brief description of the change. ## Why Why is this change needed? ## How How was this implemented? Any notable design decisions? ## Test plan How was this tested? - [ ] Unit tests added/updated - [ ] Manual testing performed - [ ] Documentation updated (if applicable)
This commit is contained in:
@@ -202,6 +202,7 @@ async function commitFlatViaKeyframes(
|
||||
}
|
||||
|
||||
const coalesceKey = `gsap:convert-drag:${anim.id}`;
|
||||
// fallow-ignore-next-line code-duplication
|
||||
await callbacks.commitMutation(
|
||||
selection,
|
||||
{
|
||||
@@ -229,6 +230,7 @@ async function commitFlatViaKeyframes(
|
||||
if (editedSelected) parkPlayheadOnKeyframe(anim, pct);
|
||||
}
|
||||
|
||||
// fallow-ignore-next-line code-duplication
|
||||
// fallow-ignore-next-line complexity
|
||||
export async function commitGsapPositionFromDrag(
|
||||
selection: DomEditSelection,
|
||||
@@ -240,6 +242,7 @@ export async function commitGsapPositionFromDrag(
|
||||
callbacks: GsapDragCommitCallbacks,
|
||||
): Promise<void> {
|
||||
const el = selection.element;
|
||||
// fallow-ignore-next-line code-duplication
|
||||
const { newX, newY, baseGsapX, baseGsapY } = computeDraggedGsapPosition(
|
||||
el,
|
||||
studioOffset,
|
||||
|
||||
Reference in New Issue
Block a user