Repository navigation
fix(desktop-gpui): keep segment resizes from overlapping their neighbours - #2834
Conversation
|
@greptileai review |
|
@yashranaway is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks @yashranaway, this is a real fix: on main |
|
@richiemcilroy good catch, capped min at the segment's current end in fdc5325 like the audio trim bounds, and the first test now checks requesting 4 keeps the end at 5. |
|
@greptileai review |
1 similar comment
|
@greptileai review |
resizing the end of a zoom or other effect segment uses a minimum length of 80 pixels, which is several seconds when the timeline is zoomed out. if that minimum didn't fit before the next segment or the end of the project, the bound just pushed past them, so the drag forced the segment over its neighbour or off the end, like 10s instead of 6s.
now the minimum is capped at the space that's actually there, and a segment already past a shortened timeline keeps its range instead of being flipped. same helper covers snapped and unsnapped drags for every effect track. it's the resize side of the gap placement fix in #2744.


Confidence Score: 5/5
The PR appears safe to merge.Summary
Updates
trim_end_boundsso a large minimum length no longer pushes an effect past its neighbour or the timeline end.Reviews (1) · Last reviewed commit: "fix(desktop-gpui): keep a short segment ..." · Reviewed by Greptile