-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Wierd focus bug on input[type=range] #1509
Comments
If you comment out that line does it actually work for you though? |
Yes it does! The problem only occurs after you switch states because it calls .reset() which then sets _stateReset to true. |
Right ok.. so basically if you swap states, then touch the Phaser game and THEN drag the slider it should work fine - because that sequence will set |
…t` was `true`, which is always `true` after a State has changed and before Pointer.start has been called. However this broken interacting with DOM elements in the case where the State changes and you immediately try to use the DOM element without first having clicked on the Phaser game. An additional guard was added so `preventDefault` will now only be called if both `_stateReste` and `Pointer.withinGame` are true (thanks @satan6 #1509)
This is now fixed in dev :) |
http://codepen.io/anon/pen/GgNmBO
If you start dragging the slider, you cannot stop dragging it in Chrome and it won't stay where you dragged it in Firefox, unless you focussed the game before by clicking on it.
The text was updated successfully, but these errors were encountered: