Repository navigation
fix(timeline): copy a whole pill, not the fragment clicked - #1245
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
A zoom, annotation, speed or Full Camera region cut by a clip boundary is several fragments drawn as one pill. Copying it took the fragment clicked, so the paste came out shorter than the region on screen. wholePillOf gives the pill as one region over its whole span; the shader effect copy, which had its own version of this, uses it too.
639f0bb to
bc4e7e3
Compare
Summary
Copying a zoom, annotation, speed or Full Camera region that a clip boundary cuts took only the fragment clicked, so the paste came out shorter than the pill on screen.
wholePillOf(timelineMap.ts) gives the pill a fragment belongs to as one region over its whole span, through the samecoalesceRegionsForRulerthe lanes draw with.handleCopyRegioncopies that. Trims and audio already collapsed their pills.The shader effect copy from #1210, which had its own version of this fix, now uses
wholePillOftoo.Related issue
None.
Type of change
Release impact
Desktop impact
Testing
timelineMap.test.ts:wholePillOfreturns a zoom cut at a clip boundary over its whole span, a lone region as is, andnullfor an unknown id.npx tsc --noEmit,npx tsc -p tsconfig.test.json --noEmit, Biome: clean.npm run test:changed: 2377 passed.🤖 Generated with Claude Code
Summary by CodeRabbit