Skip to content
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

Regression of game.input.onTap from 2.3.0 to 2.4.0a #1953

Closed
stovenator opened this issue Jul 30, 2015 · 2 comments
Closed

Regression of game.input.onTap from 2.3.0 to 2.4.0a #1953

stovenator opened this issue Jul 30, 2015 · 2 comments

Comments

@stovenator
Copy link

The game.input.onTap function is not called correctly starting with 2.4.0a . In Chrome 44 on OS X, the event is not fired on a mouse click. If a right-click happens on the screen, further left-click events fire the onTap event.

This can be seen when running the Invaders example from localhost. Unfortunately, choosing a phaser version from the dropdown on the examples page http://phaser.io/examples/v2/games/invaders doesn't actually load versions 2.4 or higher.

@vforsh
Copy link
Contributor

vforsh commented Jul 30, 2015

I've encountered this issue as well (Chrome, windows)
Temporary solution is to replace onTap for onDown.

photonstorm added a commit that referenced this issue Jul 30, 2015
…ouldn't get the Pointer.duration from within the event.

* Pointer.isDown was reset before the Input tap calculations, meaning onTap wouldn't dispatch (thanks @stovenator #1953)
@photonstorm
Copy link
Collaborator

This is fixed in dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants