feat: allow direct entry of slider values - #2995
Merged
Merged
Conversation
Closes #2795. Click the value next to any slider to type a number directly, in addition to dragging the slider thumb. Co-authored-by: Cursor <cursoragent@cursor.com>
ert78gb
force-pushed
the
feat/editable-slider-value
branch
from
July 14, 2026 09:16
a09372a to
707b9ab
Compare
ert78gb
approved these changes
Jul 14, 2026
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.
Summary
Closes #2795.
Click the value displayed next to a slider to type a number directly, in addition to dragging the slider thumb. Implemented in the shared
slider-wrappercomponent, so all standard sliders get this behavior automatically (e.g. Modules → Trackpad → Base speed, mouse pointer speed, typing behavior timeouts).Edge cases covered
0.85on a0.1step slider).valueUnit(e.g.1250 px/s) are parsed correctly when typed with or without the unit.ngModelon<input type="number">can bind a number rather than a string; parsing handles both.1701.0000000000002.min/max; empty/invalid input is discarded.Out of scope
We do not plan to implement direct entry for the handful of sliders that use a custom
valueFormatterfor time values (e.g. LED fade timeout shown as1:30). Those remain slider-only.Test plan
0.85, confirm it saves and displays correctly1700to1701, confirm no floating-point display artifactpx/sunit: enter value with and without unit suffixMade with Cursor