Skip to content

Commit ecb6b31

Browse files
committed
update touch_boundary to local coordinates
1 parent 531c81d commit ecb6b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_displayio_layout/widgets/icon_widget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def __init__(self, label_text, icon, on_disk=False, **kwargs):
7575
)
7676
self.append(_label)
7777
self.touch_boundary = (
78-
self.x,
79-
self.y,
78+
0,
79+
0,
8080
image.width,
8181
image.height + _label.bounding_box[3],
8282
)

0 commit comments

Comments
 (0)