Skip to content

Commit 38df429

Browse files
authored
Merge pull request #24 from kmatch98/touch_fix
update IconWidget touch_boundary to local coordinates
2 parents 531c81d + ecb6b31 commit 38df429

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)