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 a01947798..79d69fee9 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';