How to Get Click Coordinates in JavaScript (Consistently Across Screen Sizes)
When I was building a “Where’s Waldo” game using React, one surprisingly tricky part wasn’t the game logic or the UI — it was figuring out how to detect where on the image the user clicked, in a way that worked on any screen size or zoom level.
For ...
beautifulchaos.hashnode.dev3 min read