# Click registering regardless of position

**URL:** <https://forum.makecode.com/t/click-registering-regardless-of-position/44295>\
**Category:** Help\
**Created:** [June 1, 2026, 4:58pm UTC](https://forum.makecode.com/t/click-registering-regardless-of-position/44295 "2026-06-01T16:58:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phosphophyllite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/phosphophyllite/32/32491_2.png) [@phosphophyllite](https://forum.makecode.com/u/phosphophyllite)\
**Post date:** [June 1, 2026, 4:58pm UTC](https://forum.makecode.com/t/click-registering-regardless-of-position/44295/1 "2026-06-01T16:58:20Z")

</div>

Hello. I’m having an issue with the buttons in my game. Whenever I click them it will execute the code just fine, but after that it will execute the code no matter the position of the mouse, even when it is not on the button. Please let me know if there is any way I can redo or revise my code to fix this.

> **[CS FINAL](https://arcade.makecode.com/S33894-58077-90958-90525)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![phosphophyllite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/phosphophyllite/32/32491_2.png) [@phosphophyllite](https://forum.makecode.com/u/phosphophyllite)\
**Post date:** [June 2, 2026, 3:30am UTC](https://forum.makecode.com/t/click-registering-regardless-of-position/44295/2 "2026-06-02T03:30:27Z")

</div>

I solved it! Nevermindsies
