TLDR Web Dev · MISCELLANEOUS

HOW A BBC NAVIGATION BAR COMPONENT BROKE DEPENDING ON WHICH EXTERNAL MONITOR IT WAS ON

joshtumath.uk7 min read

Summary from the TLDR Web Dev newsletter

A bug on the BBC website's ‘More' button occurred only on external monitors positioned above the main screen due to issues with negative screen coordinates in Chrome and Firefox. The fix involved updating the event handler to check for both positive and negative screenX and screenY values.