Skip to content

Commit

Permalink
iOS and any browser identifying as AppleWebKit will now set the `De…
Browse files Browse the repository at this point in the history
…vice.es2019` flag to `true`. This causes Phaser to use the native array Stable Sort. This fixes an issue where overlapping particles could flicker on iOS. Fix phaserjs#6483
  • Loading branch information
photonstorm committed Sep 7, 2023
1 parent 533ed6e commit 377cc6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/device/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function init ()
else if ((/AppleWebKit/).test(ua) && OS.iOS)
{
Browser.mobileSafari = true;
Browser.es2019 = true;
}
else if ((/MSIE (\d+\.\d+);/).test(ua))
{
Expand Down

0 comments on commit 377cc6b

Please sign in to comment.