diff --git a/core/src/trezor/ui/__init__.py b/core/src/trezor/ui/__init__.py index d9d52f5c8a..d01fc0377c 100644 --- a/core/src/trezor/ui/__init__.py +++ b/core/src/trezor/ui/__init__.py @@ -209,7 +209,7 @@ def grid( def in_area(area: Area, x: int, y: int) -> bool: ax, ay, aw, ah = area - return ax <= x <= ax + aw and ay <= y <= ay + ah + return ax <= x < ax + aw and ay <= y < ay + ah # Component events. Should be different from `io.TOUCH_*` events.