We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dfc000 commit 83d382eCopy full SHA for 83d382e
widget.go
@@ -169,7 +169,16 @@ func (c *Context) isCapturingInput() bool {
169
return false
170
}
171
172
- return c.hoverRoot != nil || c.focus != emptyWidgetID
+ // Check whether the cursor is on any of the root containers.
173
+ pt := c.pointingPosition()
174
+ for _, cnt := range c.rootContainers {
175
+ if pt.In(cnt.layout.Bounds) {
176
+ return true
177
+ }
178
179
+
180
+ // Check whether there is a focused widget like a text field.
181
+ return c.focus != emptyWidgetID
182
183
184
// CurrentWidgetID returns the ID of the current widget being processed.
0 commit comments