iOS and any browser identifying as AppleWebKit will now set the Device.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 #6483

This commit is contained in:
Richard Davey 2023-09-07 16:22:39 +01:00
parent 533ed6e47d
commit 377cc6b37b

View file

@ -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))
{