Skill issue? Should've used viewport, not screen coordinates (read with .clientX and .clientY). I don't see why negative values in screen space is a bug.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_view/...
https://developer.mozilla.org/en-US/docs/Web/CSS/CSSOM_view/...