From 4ad0d4492988b88421e87ad89d31dd77b388ad50 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Wed, 10 Jul 2024 07:18:10 +0700 Subject: [PATCH] Disable touch for non-touch supported User-Agent profile --- src/modules/patcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/patcher.ts b/src/modules/patcher.ts index 5105777..16e6421 100644 --- a/src/modules/patcher.ts +++ b/src/modules/patcher.ts @@ -851,7 +851,7 @@ let PLAYING_PATCH_ORDERS: PatchArray = [ ...(STATES.userAgent.capabilities.touch ? [ getPref(PrefKey.STREAM_TOUCH_CONTROLLER) === 'all' && 'patchShowSensorControls', getPref(PrefKey.STREAM_TOUCH_CONTROLLER) === 'all' && 'exposeTouchLayoutManager', - (getPref(PrefKey.STREAM_TOUCH_CONTROLLER) === 'off' || getPref(PrefKey.STREAM_TOUCH_CONTROLLER_AUTO_OFF)) && 'disableTakRenderer', + (getPref(PrefKey.STREAM_TOUCH_CONTROLLER) === 'off' || getPref(PrefKey.STREAM_TOUCH_CONTROLLER_AUTO_OFF) || !STATES.userAgent.capabilities.touch) && 'disableTakRenderer', getPref(PrefKey.STREAM_TOUCH_CONTROLLER_DEFAULT_OPACITY) !== 100 && 'patchTouchControlDefaultOpacity', 'patchBabylonRendererClass', ] : []),