-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox Mobile Canvas touch do not define event #336
Comments
I can't view https://zykino.net/portfolio/Memory-Canvas/ (server dropped connection). |
Strange, the server is working fine for me even on an other connection. I just tried to check the "use desktop website": it works well (for both WEBGL and CANVAS). |
Please try buttons/action on click (click on button). |
I have both error (WEBGL & touch event) full log console:
I still got the error messages for WEBGL (#355) but I managed to fix this one by doing the following: https://github.com/photonstorm/phaser-ce/blob/c692afb16c7482a5dfc5f5f8d5b7f66f68f9b410/src/input/Touch.js#L214-L216 this.event = event;
this.game.input.executeTouchLockCallbacks(false); if (cb.onEnd === onEnd && cb.callback.call(cb.context, this, this.event)) |
This is a bug in e3f8a9d. Unfortunately it's hidden by window.event in other browsers (and JSHint). |
@Zykino please try attached: phaser-test.js.zip |
With your phaser-test build this is working great for handling the clicks :) |
I tryed it as soon as I saw #335
Phaser CE v2.8.4 | Pixi.js | Canvas | WebAudio " http://phaser.io "♥♥♥
ReferenceError: event is not defined[En savoir plus] phaser2.8.4.js:36188:1
The stack point in the executeTouchLockCallbacks function, in the if, event is undefined:
if (cb.onEnd === onEnd && cb.callback.call(cb.context, this, event))
Be nice. We do this for free. <3
The text was updated successfully, but these errors were encountered: