Skip to content

Commit da436b0

Browse files
committed
Added custom cursor property
1 parent 5c7e624 commit da436b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/input/CreateInteractiveObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @property {boolean} enabled - Is this Interactive Object currently enabled for input events?
2323
* @property {boolean} draggable - Is this Interactive Object draggable? Enable with `InputPlugin.setDraggable`.
2424
* @property {boolean} dropZone - Is this Interactive Object a drag-targets drop zone? Set when the object is created.
25-
* @property {boolean} useHandCursor - Should this Interactive Object change the cursor to a pointer (via css) when over? (desktop only)
25+
* @property {(boolean|string)} cursor - Should this Interactive Object change the cursor (via css) when over? (desktop only)
2626
* @property {?Phaser.GameObjects.GameObject} target - An optional drop target for a draggable Interactive Object.
2727
* @property {Phaser.Cameras.Scene2D.Camera} camera - The most recent Camera to be tested against this Interactive Object.
2828
* @property {any} hitArea - The hit area for this Interactive Object. Typically a geometry shape, like a Rectangle or Circle.
@@ -61,7 +61,7 @@ var CreateInteractiveObject = function (gameObject, hitArea, hitAreaCallback)
6161
enabled: true,
6262
draggable: false,
6363
dropZone: false,
64-
useHandCursor: false,
64+
cursor: false,
6565

6666
target: null,
6767

0 commit comments

Comments
 (0)