Kaliam
Member
Hello, I'm working on a HTML5 game which is contained in a webpage but lower down on the page, when you scroll down to the game, the mouse gets offset by the scrolling which is very annoying. Is there a way to fix this or is it a bug? The scrolling isn't 1:1 so it's doesn't seem possible to offset the coordinates by the scroll amount . This basically breaks my whole website and it happens on any HTML5 game. You can reproduce this by just making a new game, setting an object xy to mouse_x, mouse_y, and then making the screen small enough to cause the screen to scroll.
Any help would be amazing!
Any help would be amazing!