🎥 Make videos programmatically with React
`@remotion/studio`: Fix canvas snapping flicker (#10306)
Jonny Burger2ae4ebaa514a
diff --git a/packages/studio/src/components/SelectedOutlinePolygon.tsx b/packages/studio/src/components/SelectedOutlinePolygon.tsxindex 877102eb48..b422aff3bc 100644--- a/packages/studio/src/components/SelectedOutlinePolygon.tsx+++ b/packages/studio/src/components/SelectedOutlinePolygon.tsx@@ -179,6 +179,7 @@ const SelectedOutlinePolygonUnmemoized: React.FC<{getDragOverrides,timelinePosition: getCurrentFrame(),});+ const dragOutlines = selected ? getAllDragOutlines() : [outline];let lastValues = new Map<string, string>();let currentPointerX = startPointerX;let currentPointerY = startPointerY;@@ -235,7 +236,7 @@ const SelectedOutlinePolygonUnmemoized: React.FC<{allowY: axisLockedDirection !== 'horizontal',deltaX,deltaY,- outlines: selected ? getAllDragOutlines() : [outline],+ outlines: dragOutlines,scale,targets: snapTargets,});