Skip to content

Fix canvas position for touch events on canvas with margins #588

Closed
@xeolabs

Description

When the canvas is positioned with left and/top margins, touch events always fail to hit the position you're tapping on.

Fix by inserting the usual getCanvasPosFromEvent method into the right place within CameraControl, to convert those coordinates to local canvas coordinates.

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions