You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached Godot 3 project has a clickable sphere Area with _input_event() overridden to call get_viewport().set_input_as_handled(). Clicking on the Area causes _input_event() to be called, followed immediately by calls to _mouse_exit() and then _mouse_enter(), even though the mouse never left the Area.
If you replace get_viewport().set_input_as_handled() with get_tree().set_input_as_handled(), then _mouse_exit() and _mouse_enter() are not called.
Godot 4 doesn't have get_tree().set_input_as_handled(); it was removed in 8e6960a. get_viewport().set_input_as_handled() has the same bug in Godot 4.
Steps to reproduce
run attached project, click the sphere, see spurious mouse exit/enter logged in the console
Godot version
3.5.1.stable, 4.0.beta
System information
Arch Linux
Issue description
The attached Godot 3 project has a clickable sphere
Area
with_input_event()
overridden to callget_viewport().set_input_as_handled()
. Clicking on theArea
causes_input_event()
to be called, followed immediately by calls to_mouse_exit()
and then_mouse_enter()
, even though the mouse never left theArea
.If you replace
get_viewport().set_input_as_handled()
withget_tree().set_input_as_handled()
, then_mouse_exit()
and_mouse_enter()
are not called.Godot 4 doesn't have
get_tree().set_input_as_handled()
; it was removed in 8e6960a.get_viewport().set_input_as_handled()
has the same bug in Godot 4.Steps to reproduce
run attached project, click the sphere, see spurious mouse exit/enter logged in the console
Minimal reproduction project
click-handler.zip
The text was updated successfully, but these errors were encountered: