Auroriax / PuzzleScriptPlus

Puzzlescript Plus: Open Source HTML5 Puzzle Game Engine (with lots of extra functionality)
https://auroriax.github.io/PuzzleScript/
34 stars 4 forks source link

Touch input on mobile has a 8px offset #72

Closed Auroriax closed 1 year ago

Auroriax commented 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.

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.

Auroriax commented 1 year ago

The original reporter made a PR for this for vanilla PS: https://github.com/increpare/PuzzleScript/pull/950