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

Viewport not clip control node input #28833

Closed
yikescloud opened this issue May 11, 2019 · 2 comments · Fixed by #58334
Closed

Viewport not clip control node input #28833

yikescloud opened this issue May 11, 2019 · 2 comments · Fixed by #58334

Comments

@yikescloud
Copy link

yikescloud commented May 11, 2019

Godot version:
<3.1>

#5172report the control not clip input, but I found viewport no work either.
I cannot find a simple way to let the control node not get gui_input when it's out of it's parent control node(with clip content) or a viewport. I dont understand why a node outside of a viewport
can still catch input, it makes no sense.
What I can do now is check if the the parent get the input too.
image
And I cannot use mouse_enter exit to check if the mouse is in parent box, because the final mouse enter/exit area is the blue area in the pic above, not only the parent block.

@Zylann
Copy link
Contributor

Zylann commented Oct 30, 2021

Can reproduce in Godot 3.4 rc1
ViewportControlClipInput.zip

@Nukiloco
Copy link

This is still happening in Godot 3.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment