mirror of
https://github.com/wassname/phaser.git
synced 2026-08-16 11:25:21 +08:00
Heavily optimised PixiShader.
This commit is contained in:
@@ -354,11 +354,11 @@ Phaser.Device.prototype = {
|
||||
|
||||
this.worker = !!window['Worker'];
|
||||
|
||||
if ('ontouchstart' in document.documentElement || window.navigator.msPointerEnabled) {
|
||||
if ('ontouchstart' in document.documentElement || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 1)) {
|
||||
this.touch = true;
|
||||
}
|
||||
|
||||
if (window.navigator.msPointerEnabled) {
|
||||
if (window.navigator.msPointerEnabled || window.navigator.pointerEnabled) {
|
||||
this.mspointer = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user