Skip to content

Commit 6caec0d

Browse files
committed
Updated the pointer check code in the Device class, to get rid of the message Navigator.pointerEnabled is a non-standard API added for experiments only. It will be removed in near future. in Chrome.
1 parent e491518 commit 6caec0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/Device.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ Phaser.Device._initialize = function () {
786786
device.touch = true;
787787
}
788788

789-
if (window.navigator.msPointerEnabled || window.navigator.pointerEnabled)
789+
if (window.PointerEvent || window.MSPointerEvent || window.navigator.msPointerEnabled || window.navigator.pointerEnabled)
790790
{
791791
device.mspointer = true;
792792
}

0 commit comments

Comments
 (0)