wise9/enchant.js

Touch events not triggered at right place

Closed this issue · 2 comments

In this simple exemple, touch events are triggered in the yellow zone, far from the actual sprite (yellow outline)

enchant

Any ideas?

Application:
http://www.absurdus.net/temp/

Source:
http://www.absurdus.net/temp/main.js

Thanks,

Jonathan

Core#scale (Game#scale) is set automatically in initialize.
If you change this property, some problems happen.
So, you can avoid this problem by remove this line.

    game.scale = 1;

Thank you very much.

It's strange though as I recall adding this line trying to solve that exact problem. Anyways.

Jo