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
I setup a Control and a Camera2D within a SubViewport within a SubViewportContainer so that the Control is located only partially within the SubViewport. SubViewportContainer:rect_clip_content is set to true. mouse_focus and focus_mode are set so that all nodes receive input events.
When I click outside of the SubVieportContainer, but within the location of the Control, I receive a gui event on Control.
I would expect, that in this case I do not receive a gui event.
Tracking it down in the source code, it looks like SubViewportContainer is not handled correctly at this location:
Godot version
v4.0.alpha.custom_build [3db1d68]
System information
Debian 11, Vulkan
Issue description
I setup a
Control
and aCamera2D
within aSubViewport
within aSubViewportContainer
so that theControl
is located only partially within theSubViewport
.SubViewportContainer:rect_clip_content
is set totrue
.mouse_focus
andfocus_mode
are set so that all nodes receive input events.When I click outside of the
SubVieportContainer
, but within the location of theControl
, I receive a gui event onControl
.I would expect, that in this case I do not receive a gui event.
Tracking it down in the source code, it looks like
SubViewportContainer
is not handled correctly at this location:godot/scene/main/viewport.cpp
Line 1386 in df17244
Steps to reproduce
SubViewportContainer
Label
Minimal reproduction project
SubViewportClick.zip
The text was updated successfully, but these errors were encountered: