Skip to content

Commit 757136b

Browse files
committed
Device.mobileSafari was no longer detecting Mobile Safari, now fixed (thanks @Zammy, phaserjs#927)
1 parent 79bd7c4 commit 757136b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Version 2.0.6 - "Jornhill" - -in development-
144144
Calling addToWorld() would previously not check the _toRemove array, which could, if the timing were right, result in a Sprite being revived but then removed from the P2 World -- the result of this being the Sprites data would be in a mixed state causing it to appear visually but not function in the world (thanks @jonkelling, fix #917 #925)
145145
* Input.SinglePad was fixed so that the rawpad button array supports Windows and Linux (thank @renatodarrigo, fix #958)
146146
* Key.duration wasn't set to zero after a Key.reset (thanks @DrHackenstein, #932)
147+
* Device.mobileSafari was no longer detecting Mobile Safari, now fixed (thanks @Zammy, #927)
147148

148149

149150
### ToDo

src/system/Device.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,12 @@ Phaser.Device = function (game) {
372372
this.fullscreenKeyboard = false;
373373

374374
// Run the checks
375+
this._checkOS();
375376
this._checkAudio();
376377
this._checkBrowser();
377378
this._checkCSS3D();
378379
this._checkDevice();
379380
this._checkFeatures();
380-
this._checkOS();
381381

382382
};
383383

@@ -570,7 +570,7 @@ Phaser.Device.prototype = {
570570
{
571571
this.firefox = true;
572572
}
573-
else if (/Mobile Safari/.test(ua))
573+
else if (/AppleWebKit/.test(ua) && this.iOS)
574574
{
575575
this.mobileSafari = true;
576576
}

0 commit comments

Comments
 (0)