From c43cc1002d795cea2c26e78e17cc15bf3796736d Mon Sep 17 00:00:00 2001 From: Daniil Babanin Date: Thu, 11 Jun 2026 19:48:37 +0200 Subject: [PATCH] Use PointerEventHandler on all Android devices so a pen can select text platform.isMobile requires a Mobi token in the user agent, which Android tablets usually omit, so they fell back to TouchHandler and a stylus could only scroll. Widen the Android check so tablets get the pen-aware PointerEventHandler too, matching what iOS already does. Follow-up to #198578 --- src/vs/editor/browser/controller/pointerHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/browser/controller/pointerHandler.ts b/src/vs/editor/browser/controller/pointerHandler.ts index 4eb4ca92b395f..252448ca08235 100644 --- a/src/vs/editor/browser/controller/pointerHandler.ts +++ b/src/vs/editor/browser/controller/pointerHandler.ts @@ -141,7 +141,7 @@ export class PointerHandler extends Disposable { constructor(context: ViewContext, viewController: ViewController, viewHelper: IPointerHandlerHelper) { super(); - const isPhone = platform.isIOS || (platform.isAndroid && platform.isMobile); + const isPhone = platform.isIOS || platform.isAndroid; if (isPhone && BrowserFeatures.pointerEvents) { this.handler = this._register(new PointerEventHandler(context, viewController, viewHelper)); } else if (mainWindow.TouchEvent) {