Repository navigation
Flows: a length being typed or dragged no longer cuts keyframes on the way - #601
Merged
Merged
Conversation
…e way The Studio's Length field handed on every keystroke, and a shorter length removes the keyframes and markers past it: "20" typed over "30" passed through 1 and 2 seconds, so everything after 2 s was gone. - Studio: the length is taken on Enter, on leaving the field or with the arrows (NumberInput's commitOnBlur). A cut is a step of its own for Undo, and a toast says what a shorter length removed, with Undo. - Phone: while the Length slider is dragged, the length is cut from the flow as it was when the drag began, so passing a shorter length on the way takes nothing for good (Slider: onDragStart, onDragEnd). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug
In the Studio's Flows app, changing a flow's length by typing removed keyframes: "20" typed over "30" left the flow at 20 s with every keyframe after 2 s gone.
The Length field handed on every keystroke (
NumberInputwithoutcommitOnBlur), and a shorter length removes the keyframes and markers past it. Typing passes through an empty field (taken as the minimum, 1 s) and "2" (2 s) before it reads "20".What changed
FlowsApp.tsx): the length is taken on Enter, on leaving the field or with the arrows; Escape drops what was typed. A change of length is one Undo step of its own. When a shorter length removes keyframes or markers, a toast says how many, with Undo.ui/Editor.tsx,src/ui/forms.tsx): the Length slider had the same fault while dragging (every step on the way cut). While the thumb is dragged, the length is now cut from the flow as it was when the drag began;SlidergainedonDragStartandonDragEnd.docs/features/flows.mdsays when the length is taken.Decisions
Checked
make checkpasses.Not checked
🤖 Generated with Claude Code