File tree Expand file tree Collapse file tree
packages/studio/src/hooks Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments