Yes, this is a difficult problem to solve, as we can't really force a users mouse to stay within the bounds of the game on web