Skip to content

Commit 078d0c0

Browse files
committed
Added new EventData typedef
1 parent 3e48021 commit 078d0c0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/input/EventData.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* @author Richard Davey <rich@photonstorm.com>
3+
* @copyright 2019 Photon Storm Ltd.
4+
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
5+
*/
6+
7+
/**
8+
* A Phaser Input Event Data object.
9+
*
10+
* This object is passed to the registered event listeners and allows you to stop any further propagation.
11+
*
12+
* @typedef {object} Phaser.Input.EventData
13+
*
14+
* @property {boolean} [cancelled=false] - The cancelled state of this Event.
15+
* @property {function} stopPropagation - Call this method to stop this event from passing any further down the event chain.
16+
*/

0 commit comments

Comments
 (0)