Skip to content

Commit d6e4f38

Browse files
chore(studio): document CSS-path position cut-over, GSAP-path intentionally deferred (§3.3)
Co-authored-by: Miguel Ángel <miguel07alm@protonmail.com>
1 parent 15f97e8 commit d6e4f38

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

packages/studio/src/hooks/useDomGeometryCommits.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,11 @@ export function useDomGeometryCommits({
4242
}: UseDomGeometryCommitsParams) {
4343
const handleDomPathOffsetCommit = useCallback(
4444
(selection: DomEditSelection, next: { x: number; y: number }) => {
45-
const gsapBlocked = isElementGsapTargeted(previewIframeRef.current, selection.element);
46-
console.log(
47-
"[drag:7] handleDomPathOffsetCommit (CSS path)",
48-
JSON.stringify({
49-
sel: selection.id,
50-
gsapBlocked,
51-
}),
52-
);
53-
if (gsapBlocked) {
45+
// ponytail: GSAP-targeted elements are blocked (no SDK position-in-script op); CSS-path
46+
// elements fall through to commitPositionPatchToHtml → persistDomEditOperations →
47+
// onTrySdkPersist and are already SDK-cut-over as setStyle/setAttribute (§3.3 done).
48+
// Upgrade path for GSAP: add a moveElementGsap SDK op in a separate SDK PR.
49+
if (isElementGsapTargeted(previewIframeRef.current, selection.element)) {
5450
const error = new Error(GSAP_CSS_FALLBACK_BLOCKED_MESSAGE);
5551
showToast(error.message, "error");
5652
return Promise.reject(error);

0 commit comments

Comments
 (0)