Skip to content

Commit d504750

Browse files
committed
Added Zone.setBlendMode method as a NOOP function, fixing a bug where if you added a Zone to a Container when running under Canvas it would fail. Fix phaserjs#4295
1 parent f3f65d1 commit d504750

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ The following changes all effect the Matter JS Pointer Constraint class:
3737
* `KeyboardPlugin.checkDown` would always fail if using the new event system, because the time value it was checking wasn't updated.
3838
* Entering Fullscreen mode in the Scale Manager and then pressing ESC would leave the injected fullsceen div in the DOM, causing it to fail with a node insertion failure the second time you wanted to enter fullscreen mode. Fix #4352 (thanks @ngdevr)
3939
* Due to the changes in the Input event system, the `GAME_OUT` event would never fire unless the input system was in legacy mode. The OUT and OVER handlers have been refactored and will now fire as soon as the DOM event happens. As a result the `InputManager._emitIsOverEvent` property has been removed, as the native event is sent directly to the handler and doesn't need storing locally any more. Fix #4344 (thanks @RademCZ)
40+
* Added `Zone.setBlendMode` method as a NOOP function, fixing a bug where if you added a Zone to a Container when running under Canvas it would fail. Fix #4295 (thanks @emanuel15)
4041

4142
### Examples, Documentation and TypeScript
4243

src/gameobjects/zone/Zone.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,18 @@ var Zone = new Class({
266266
{
267267
},
268268

269+
/**
270+
* A NOOP method so you can pass a Zone to a Container in Canvas.
271+
* Calling this method will do nothing. It is intentionally empty.
272+
*
273+
* @method Phaser.GameObjects.Zone#setBlendMode
274+
* @private
275+
* @since 3.16.2
276+
*/
277+
setBlendMode: function ()
278+
{
279+
},
280+
269281
/**
270282
* A Zone does not render.
271283
*

0 commit comments

Comments
 (0)