Skip to content

Commit c16ea36

Browse files
committed
Revert the fix for views passing click events to widgets that aren't visible
There are some widgets we want to interact with without having to mouse over them, e.g. text boxes
1 parent fb97732 commit c16ea36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/meteordevelopment/meteorclient/gui/widgets/containers

src/main/java/meteordevelopment/meteorclient/gui/widgets/containers/WView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ else if (targetScroll < scroll) {
164164

165165
@Override
166166
protected boolean propagateEvents(WWidget widget) {
167-
return mouseOver && isWidgetInView(widget);
167+
return ((widget.y >= y && widget.y <= y + height) || (widget.y + widget.height >= y && widget.y + widget.height <= y + height)) || ((y >= widget.y && y <= widget.y + widget.height) || (y + height >= widget.y && y + height <= widget.y + widget.height));
168168
}
169169

170170
protected boolean isWidgetInView(WWidget widget) {

0 commit comments

Comments
 (0)