Skip to content

Commit

Permalink
* Increase the click range of the exit button in app_scan_qrcode project
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed Jul 18, 2024
1 parent 97e8dfe commit 970acb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/app_scan_qrcode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def is_exit(x, y, touch):

real_x = exit_img_x + upper_canvas_x
real_y = exit_img_y + upper_canvas_y
if x > real_x and x < real_x + exit_img.width() and y > real_y and y < real_y + exit_img.height():
if x > real_x and x < real_x + exit_img.width() + 20 and y > real_y and y < real_y + exit_img.height() + 20:
return True
else:
return False
Expand Down

0 comments on commit 970acb3

Please sign in to comment.