Closed Auroriax closed 1 year ago
The body element automatically gets a 8px margin, which offsets the touch events by the same amount of pixels both horizontally and vertically.
body
A quick fix would be to force a 0px margin through CSS. Although a more proper solution would be to detect and ignore this in JS.
Fix on both player & exports. And perhaps also in the editor? Need to double check.
The original reporter made a PR for this for vanilla PS: https://github.com/increpare/PuzzleScript/pull/950
The
body
element automatically gets a 8px margin, which offsets the touch events by the same amount of pixels both horizontally and vertically.A quick fix would be to force a 0px margin through CSS. Although a more proper solution would be to detect and ignore this in JS.
Fix on both player & exports. And perhaps also in the editor? Need to double check.