-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Allow aborting SpinSlider
value changes
#88275
Conversation
@@ -1488,6 +1488,10 @@ Transform3D Node3DEditorViewport::_compute_transform(TransformMode p_mode, const | |||
} | |||
|
|||
void Node3DEditorViewport::_surface_mouse_enter() { | |||
if (Input::get_singleton()->get_mouse_mode() == Input::MOUSE_MODE_CAPTURED) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the mouse cursor is captured by another element (i.e a SpinSlider
), 3d viewport grabs focus and starts reacting to input. It happens only if it's in the middle of the screen at that time, so must be unintentional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had this rarely occur even outside of this PR. This sounds good to me on paper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section is a duplicate of #87642, I can confirm that it works. All good if this PR supersedes it since it does more than mine.
SpinSlider
value changesSpinSlider
value changes
This gets my personal approval but I'm neither part of Usability, nor Editor teams. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above comment would be nice to address, but otherwise looks fine.
3d68163
to
5689dbc
Compare
Thanks! |
This allows you to use
right click
orescape
to abort changes while dragging sliders in Inspector, same way you can do it with viewport gizmosspinslider_abort.mp4
Closes godotengine/godot-proposals#9044
Closes #87639
Supersedes #87642