Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by grelca

So I'm using ig.input.mouse.x/y, and I've noticed that on my iPad if I have to scroll down to get to the canvas, the y coordinate decreases by however much I've scrolled (I assume the same would apply for the x but I don't need to scroll horizontally). I can see the veeeery top of the game at the start, and if I touch it the parts I can get to work fine. But when I scroll down to see it all (and I added a console log to see what the x and y were), the y coordinate is negative. Any ideas on what I can do about this?

1 decade ago by Eddie

Are you using iOS Impact?

1 decade ago by Eddie

Are you using iOS Impact?

1 decade ago by grelca

No, because I'm not biulding an iOS app. Just trying to make my little game cross-browser compatible and I consider phone browsers as a part of that.

I ended up just adding some buttons above the canvas, hiding them on regular browsers and showing them on mobile, and binding touch actions to them.
Page 1 of 1
« first « previous next › last »