diff --git a/pxtblocks/monkeyPatches/gesture.ts b/pxtblocks/monkeyPatches/gesture.ts index ad59c2c78e5..5a5d7ab4677 100644 --- a/pxtblocks/monkeyPatches/gesture.ts +++ b/pxtblocks/monkeyPatches/gesture.ts @@ -12,7 +12,7 @@ export function monkeyPatchGesture() { // This patch effectively removes multitouch by ignoring all pointer events except for ones // generated by the first pointer that is encountered. All pointerup events are still allowed // through (see wrapHandler below) - if (!pxt.BrowserUtils.isChromeOS() || !pxt.BrowserUtils.isInGame()) { + if (!pxt.BrowserUtils.isAndroid() || !pxt.BrowserUtils.isInGame()) { return; } diff --git a/pxtlib/browserutils.ts b/pxtlib/browserutils.ts index 40ab3b0989c..be83e6cace7 100644 --- a/pxtlib/browserutils.ts +++ b/pxtlib/browserutils.ts @@ -126,10 +126,6 @@ namespace pxt.BrowserUtils { return hasNavigator() && /Epiphany/i.test(navigator.userAgent); } - export function isChromeOS(): boolean { - return hasNavigator() && /cros/i.test(navigator.userAgent); - } - export function isTouchEnabled(): boolean { return typeof window !== "undefined" && ('ontouchstart' in window // works on most browsers