-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
EditorSpinSlider: Change input via ´down´ or ´up´ arrow key #81272
Comments
Can't replicate, and the video doesn't show the same behavior as your description Are you sure you don't press |
now? new video and |
I cannot replicate this no, not without pressing other keys, like Alt |
no, only |
Looks like you are accidentally dragging when selecting the edit, which modifies the value Can you confirm this by having the mouse outside the area, and select it with tab instead of clicking on it? |
Screen-2023-09-03-162152.mp4 |
Probably something either hardware specific on your end or Mac specific, as I cannot replicate this on Windows |
I'll also check it later under WindowsOS. I wanted to try to catch Line 241 in fa3428f
|
It's not a |
partially reproduced under Windows
that looks strange, or is it intentional? |
That part is probably a floating point issue and unsure if it can be resolved, possibly related to the way it parses text, but could just be down to how precision is handled But that should be a separate bug report IMO as the original bug isn't reproducible on Windows and therefore unrelated |
ok thx, I will check it more closely. I think macOS also has a "floating point problem", even with |
I found out that the Screen-2023-09-03-180444.mp4 |
The floating point problem I'm talking about isn't related to floating point rounding, but to representing as text, as you can see it only represents to a fixed number of digits Feel free to open a PR changing this if you feel it's a good solution to the problem |
It is based on the range provided, for it allows wider ranges in this case, it just is used for handling the normal range for the sliders etc. |
Godot version
v4.1.1.stable.official [bd6af8e] and v4.2.dev4.official [549fcce]
System information
macOS 13.4.1 - Vulkan (Forward+) - integrated Apple M1 - Apple M1 (8 Threads)
Issue description
If the input is set to -1 and you want to change the value back to 0 by pressing the arrow key up, the value is increased by 0.001 only. This looks like a rounding error (see video below). In version 3.5.2 it was still ok.
Steps to reproduce
Node2D
-1
up
several times, thendown
again.Screen-2023-09-03-160653.mp4
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: