mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
InputHandler.consumePointerEvent has been removed, as it was never used internally anyway, so was misleading (thanks @GregoryAveryWeir #2227)
This commit is contained in:
parent
1ac287f9d3
commit
882c8b8d40
3 changed files with 2 additions and 12 deletions
|
@ -306,6 +306,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
|
|||
* Loader.audiosprite is renamed to Loader.audioSprite (the old one still works for legacy reasons) (thanks @epaezrubio #2145)
|
||||
* EarCut now replaces PolyK, which fixes advanced Graphics mask triangulation issues such as #1941
|
||||
* Camera.checkBounds now takes the scale of the Camera into account (thanks @ForGorNorPor #2263)
|
||||
* InputHandler.consumePointerEvent has been removed, as it was never used internally anyway, so was misleading (thanks @GregoryAveryWeir #2227)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
|
@ -331,6 +332,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
|
|||
* Both `transparent` and `antialias` were ignored if set to `false` in a Game configuration object, as the `parseConfig` method didn't check for falsey values (thanks @amadeus #2302)
|
||||
* GameObject.revive used to add the health amount given to the Game Object (via `heal`) instead of setting it as the new health amount. It now calls `setHealth` instead, giving it the exact amount (thanks @netgfx #2231)
|
||||
* Group.add and Group.addAt would forget to remove the child from the hash of its previous Group if it had a physics body enabled, causing unbounded hash increase (thanks @strawlion @McIntozh #2232)
|
||||
* On Retina and High DPI displays (such as a Macbook) going in to Full Screen was showing at double the scale (thanks @nickryall #1993)
|
||||
|
||||
### Pixi Updates
|
||||
|
||||
|
|
|
@ -166,14 +166,6 @@ Phaser.InputHandler = function (sprite) {
|
|||
*/
|
||||
this.boundsSprite = null;
|
||||
|
||||
/**
|
||||
* If this object is set to consume the pointer event then it will stop all propagation from this object on.
|
||||
* For example if you had a stack of 6 sprites with the same priority IDs and one consumed the event, none of the others would receive it.
|
||||
* @property {boolean} consumePointerEvent
|
||||
* @default
|
||||
*/
|
||||
this.consumePointerEvent = false;
|
||||
|
||||
/**
|
||||
* @property {boolean} scaleLayer - EXPERIMENTAL: Please do not use this property unless you know what it does. Likely to change in the future.
|
||||
*/
|
||||
|
@ -978,9 +970,6 @@ Phaser.InputHandler.prototype = {
|
|||
}
|
||||
}
|
||||
|
||||
// Consume the event?
|
||||
return this.consumePointerEvent;
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
1
typescript/phaser.d.ts
vendored
1
typescript/phaser.d.ts
vendored
|
@ -1908,7 +1908,6 @@ declare module Phaser {
|
|||
boundsRect: Phaser.Rectangle;
|
||||
boundsSprite: Phaser.Sprite;
|
||||
bringToTop: boolean;
|
||||
consumePointerEvent: boolean;
|
||||
dragOffset: Phaser.Point;
|
||||
dragFromCenter: boolean;
|
||||
draggable: boolean;
|
||||
|
|
Loading…
Add table
Reference in a new issue