mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #2947 from jaycetde/floating-button-fix
Fixed floating button values
This commit is contained in:
commit
4f58464157
2 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -219,6 +219,9 @@ Phaser.DeviceButton.prototype = {
|
|||
*/
|
||||
padFloat: function (value) {
|
||||
|
||||
this.isDown = false;
|
||||
this.isUp = false;
|
||||
|
||||
this.value = value;
|
||||
|
||||
this.onFloat.dispatch(this, value);
|
||||
|
|
Loading…
Reference in a new issue