Skip to content

fix(Slider): clamp rounded release values to bounds - #13982

Open
Xapollon430 wants to merge 1 commit into
youzan:mainfrom
Xapollon430:codex/fix-slider-rounded-release-bounds
Open

Xapollon430 wants to merge 1 commit into
youzan:mainfrom
Xapollon430:codex/fix-slider-rounded-release-bounds

Conversation

@Xapollon430

Copy link
Copy Markdown

Drag a Slider with modelValue0, step40 to80. Change max100→60, then release without another move. format clamps to60 before step rounding, which restores80. The final change event therefore exceeds the current max.

Clamp once more after rounding. The existing decimal-safe addition stays in use. One focused actual setup/useTouch/format-helper check failed before (change80) and passed after (change60). It uses real Vue reactivity with rectangle/listener/rendering helpers stubbed. It does not render a browser Slider. A matching existing-harness regression is included; the broad suite/lint was not run.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.35%. Comparing base (ec5b45b) to head (81efad4).
⚠️ Report is 327 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13982      +/-   ##
==========================================
- Coverage   89.60%   89.35%   -0.25%     
==========================================
  Files         257      257              
  Lines        7013     6699     -314     
  Branches     1736     1675      -61     
==========================================
- Hits         6284     5986     -298     
+ Misses        384      378       -6     
+ Partials      345      335      -10     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants