vsmode/pixel8

Autoscale and click event

Closed this issue · 3 comments

The AutoScale wrapper is adding a transform scale (< 1.0) if the stage doesn't fit in the container, leading a wrong onClick cell detection (because the provided scale value should take in account also the AutoScale transformation).

Alright — the first issue! :D

Good find @nikpundik. I noticed you forked the repo. Do you plan on submitting a PR to fix this issue, or shall I take a look?

Ok, I think I found a solution, I'm submitting a PR

Your fix looks good to me! I’ll merge and deploy an update later today. Thanks @nikpundik 👌🎉