Merge pull request #2947 from jaycetde/floating-button-fix

Fixed floating button values
This commit is contained in:
Richard Davey 2017-01-09 10:41:35 +00:00 committed by GitHub
commit 4f58464157
2 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,7 @@
### Bug Fixes
* Floating Gamepad buttons now work correctly when partially pressing and releasing
* Phaser.Line.intersectsRectangle() now works correctly for horizontal and vertical lines ([#2942](https://github.com/photonstorm/phaser/issues/2942)).
* removeTextureAtlas now deletes the correct cache object.

View file

@ -219,6 +219,9 @@ Phaser.DeviceButton.prototype = {
*/
padFloat: function (value) {
this.isDown = false;
this.isUp = false;
this.value = value;
this.onFloat.dispatch(this, value);