Skip to content

Commit 8db6127

Browse files
committed
Swapping to American-English spelling for consistency
~sigh~ it looks so wrong
1 parent ae9c3b6 commit 8db6127

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/input/Pointer.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,16 @@ var Pointer = new Class({
285285
this.wasTouch = false;
286286

287287
/**
288-
* Did this Pointer get cancelled by a touchcancel event?
288+
* Did this Pointer get canceled by a touchcancel event?
289+
*
290+
* Note: "canceled" is the American-English spelling of "cancelled". Please don't submit PRs correcting it!
289291
*
290-
* @name Phaser.Input.Pointer#wasCancelled
292+
* @name Phaser.Input.Pointer#wasCanceled
291293
* @type {boolean}
292294
* @default false
293295
* @since 3.15.0
294296
*/
295-
this.wasCancelled = false;
297+
this.wasCanceled = false;
296298

297299
/**
298300
* If the mouse is locked, the horizontal relative movement of the Pointer in pixels since last frame.
@@ -534,7 +536,7 @@ var Pointer = new Class({
534536
this.dirty = true;
535537

536538
this.wasTouch = true;
537-
this.wasCancelled = false;
539+
this.wasCanceled = false;
538540
},
539541

540542
/**
@@ -591,7 +593,7 @@ var Pointer = new Class({
591593
this.dirty = true;
592594

593595
this.wasTouch = true;
594-
this.wasCancelled = false;
596+
this.wasCanceled = false;
595597

596598
this.active = false;
597599
},
@@ -619,7 +621,7 @@ var Pointer = new Class({
619621
this.dirty = true;
620622

621623
this.wasTouch = true;
622-
this.wasCancelled = true;
624+
this.wasCanceled = true;
623625

624626
this.active = false;
625627
},

0 commit comments

Comments
 (0)