mirror of
https://github.com/wassname/phaser.git
synced 2026-10-03 12:42:08 +08:00
Heavily optimised PixiShader.
This commit is contained in:
1 parent
86584a636c
commit
141337bed9
11 files changed
+222
-301
No files matched your search
@@ -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