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

Bug: isDown state won't update when mouse released outside of game canvas #3779

Closed
rexrainbow opened this issue Jun 21, 2018 · 1 comment
Closed

Comments

@rexrainbow
Copy link
Contributor

rexrainbow commented Jun 21, 2018

Here is a sample code of this issue (v3.10.1)

  1. Press left-key of mouse inside game canvas,
  2. Drag outside game canvas,
  3. Release left-key outside game canvas,
  4. Move cursor back to game canvas.

No mouse key pressed after last step, but the scene.input.activePointer.isDown is still true.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@rexrainbow rexrainbow changed the title Bug: isDown state won't update when mouse releases outside of game canvas Bug: isDown state won't update when mouse released outside of game canvas Jun 21, 2018
@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

No branches or pull requests

2 participants