# Common help on browser events

**URL:** https://forum.makecode.com/t/common-help-on-browser-events/34815
**Category:** Help
**Tags:** game
**Created:** [March 22, 2025, 11:38pm UTC](https://forum.makecode.com/t/common-help-on-browser-events/34815 "2025-03-22T23:38:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)
#### Post date: [March 22, 2025, 11:38pm UTC](https://forum.makecode.com/t/common-help-on-browser-events/34815/1 "2025-03-22T23:38:54Z")

</div>

I think I need to draw attention to one of the most annoying things about browser events. The mouse x y position is relative to the camera, so you have to do a bunch of math to figure out angles and locations if you are moving your camera. Don’t get me wrong, I love this extension but I really need help with this. I really would like for a block to do this to be added to sprite utils or browser events. I just can’t figure out the maths

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [March 23, 2025, 5:41pm UTC](https://forum.makecode.com/t/common-help-on-browser-events/34815/2 "2025-03-23T17:41:29Z")

</div>

> **[Browser events relative to camera test](https://arcade.makecode.com/S69329-46213-18581-88147)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

The math isn’t too complicated! Here it is if you need it.

---

<div class="post-metadata">

### Author: ![BotWarrior](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/botwarrior/32/25328_2.png) [@BotWarrior](https://forum.makecode.com/u/BotWarrior)
#### Post date: [March 23, 2025, 9:32pm UTC](https://forum.makecode.com/t/common-help-on-browser-events/34815/3 "2025-03-23T21:32:23Z")

</div>

Thanks so much!
