Feathers number input's chevrons stick on snapped f32 values.

Open Beginner friendly
#26,536 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
game-dev

Research direction

Start in number_input.rs, at step_snapped_f64, where the snapping tolerance of 1e-9 is applied to the step arithmetic. Reproduce the stuck chevron with an f32 value in the number input, then check whether the tolerance is too tight for values that passed through f32 and were widened to f64. Done when the chevron keeps stepping past the limit for f32 values and existing number input behaviour still holds.

Written by the indexing model from the issue text.

Description

C-Bug S-Needs-Triage

Bevy version and features

0.20

What you did

Clicking on the chevron sticks - the number doesn't go past a certain limit.

What went wrong

step_snapped_f64 (number_input.rs) allows 1e-9 of a step for rounding, and an f32 widened to f64 is off by about 1e-7 relative

Dominant language
Rust
Stars
49.8k
Forks
5.1k
Avg merge
3d 4h
Merged PRs (30d)
136

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bevyengine/bevy

All issues in bevyengine/bevy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.