diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-26 09:13:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 09:13:49 +0200 |
commit | 32b00e0e290ca75a946a7542dc25c385dfef8f29 (patch) | |
tree | a34114b146d6a695c4e85c09372baf73384e6966 /doc | |
parent | bd6e9eecba050e51c780b589e169028342855934 (diff) | |
parent | 37c1cbdcb217ffe59444660dae11cbb76c6ac20f (diff) |
Merge pull request #50869 from Calinou/doc-control-mouse-enter-exit-signals
Document caveats with Control's `mouse_entered`/`mouse_exited` signals
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Control.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 79b3788449..5c0856cb6a 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -1229,11 +1229,13 @@ <signal name="mouse_entered"> <description> Emitted when the mouse enters the control's [code]Rect[/code] area, provided its [member mouse_filter] lets the event reach it. + [b]Note:[/b] [signal mouse_entered] will not be emitted if the mouse enters a child [Control] node before entering the parent's [code]Rect[/code] area, at least until the mouse is moved to reach the parent's [code]Rect[/code] area. </description> </signal> <signal name="mouse_exited"> <description> Emitted when the mouse leaves the control's [code]Rect[/code] area, provided its [member mouse_filter] lets the event reach it. + [b]Note:[/b] [signal mouse_exited] will be emitted if the mouse enters a child [Control] node, even if the mouse cursor is still inside the parent's [code]Rect[/code] area. </description> </signal> <signal name="resized"> |