The Input.Pointer.event property can now be a WheelEvent as well.

This commit is contained in:
Richard Davey 2021-05-03 18:15:20 +01:00
parent 682ac1a108
commit f802ac5d8c
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@
* The `UpdateList.shutdown` method will now remove the `PRE_UPDATE` handler from the ProcessQueue correctly (thanks @samme)
* When loading a Video with a config object, it would not get the correct `key` value from it (thanks @mattjennings)
* The `GameObjectFactory.existing` method will now accept `Layer` as a TypeScript type. Fix #5642 (thanks @michal-bures)
* The `Input.Pointer.event` property can now be a `WheelEvent` as well.
### Examples, Documentation and TypeScript

View file

@ -64,7 +64,7 @@ var Pointer = new Class({
* The most recent native DOM Event this Pointer has processed.
*
* @name Phaser.Input.Pointer#event
* @type {(TouchEvent|MouseEvent)}
* @type {(TouchEvent|MouseEvent|WheelEvent)}
* @since 3.0.0
*/
this.event;