Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slider decimal display behavior is different on native vs web #4841

Open
e00E opened this issue Jul 17, 2024 · 0 comments
Open

slider decimal display behavior is different on native vs web #4841

e00E opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something is broken

Comments

@e00E
Copy link
Contributor

e00E commented Jul 17, 2024

eframe = { version = "0.28.1", default-features = false, features = [ "default_fonts", "glow", "wayland" ] }
egui = { version = "0.28.1", default-features = false, features = [  ] }

I have a simple slider like Slider::new(_, 1.0..=50.).step_by(1.).

On desktop (Linux, Wayland) the displayed number of the slider does not show decimals. This is what I expect when I set the step to 1. On web (Linux, Firefox, eframe) the slider shows one decimal. I can fix this with fixed_decimals(0) but the point of the bug is that the behavior is inconsistent. It should be consistent.

@e00E e00E added the bug Something is broken label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant