Skip to content

Commit a29b0e1

Browse files
committed
Revert "debugui: skip handling input and rendering widgets outside of scroll"
This reverts commit ebdeb1c. Reason: this causes issues with example/gallery
1 parent ebdeb1c commit a29b0e1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

widget.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@ func (c *Context) widget(id widgetID, opt option, layout func(bounds image.Recta
119119
layout(bounds)
120120
}
121121

122-
l, err := c.layout()
123-
if err != nil {
124-
return nil, err
125-
}
126-
if !l.body.Overlaps(bounds.Sub(c.currentContainer().layout.ScrollOffset)) {
127-
return nil, nil
128-
}
129-
130122
wasFocused := c.handleInputForWidget(id, bounds, opt)
131123
var e EventHandler
132124
if handleInput != nil {

0 commit comments

Comments
 (0)