From df949e381ae624fd257983ad5d35b77d911a6a71 Mon Sep 17 00:00:00 2001 From: Tsuji Riya Date: Mon, 31 Aug 2026 13:48:13 +0900 Subject: [PATCH] fix: enable user selection for math static elements --- css/core.less | 2 -- src/public/math-static-elements.ts | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/core.less b/css/core.less index 27e8deacf..f44e3b26a 100644 --- a/css/core.less +++ b/css/core.less @@ -385,8 +385,6 @@ white-space: nowrap; text-shadow: none; - -webkit-user-select: none; - user-select: none; width: min-content; diff --git a/src/public/math-static-elements.ts b/src/public/math-static-elements.ts index 9a2ef583e..ae34ce8d8 100644 --- a/src/public/math-static-elements.ts +++ b/src/public/math-static-elements.ts @@ -396,6 +396,8 @@ abstract class MathStaticElement extends HTMLElement { if (!this._mathMLContainer) { this._mathMLContainer = document.createElement('div'); this._mathMLContainer.style.position = 'absolute'; + this._mathMLContainer.style.webkitUserSelect = 'none'; + this._mathMLContainer.style.userSelect = 'none'; this._mathMLContainer.style.width = '1px'; this._mathMLContainer.style.height = '1px'; this._mathMLContainer.style.overflow = 'hidden';