diff --git a/package.json b/package.json index 51711cb34..6b4181ca4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kedyou/mathlive", - "version": "0.101.0", + "version": "0.101.1", "description": "A web component for math input", "license": "MIT", "funding": { diff --git a/src/editor-mathfield/mathfield-private.ts b/src/editor-mathfield/mathfield-private.ts index 9063e9107..4668c5532 100644 --- a/src/editor-mathfield/mathfield-private.ts +++ b/src/editor-mathfield/mathfield-private.ts @@ -812,7 +812,9 @@ If you are using Vue, this may be because you are using the runtime-only build o break; case 'pointerdown': - if (!evt.defaultPrevented && this.userSelect !== 'none') { + // Comment out this.userSelect !== none because it breaks on Chrome + // https://github.com/kedyou/kedyou-frontend/issues/1150 + if (!evt.defaultPrevented /** && this.userSelect !== 'none' */) { onPointerDown(this, evt as PointerEvent); // Firefox convention: holding the shift key disables custom context menu if ((evt as PointerEvent).shiftKey === false) { @@ -1240,8 +1242,8 @@ If you are using Vue, this may be because you are using the runtime-only build o mode === 'latex' ? 'latex' : mode === 'math' - ? 'plain-text' - : 'ascii-math'; + ? 'plain-text' + : 'ascii-math'; const selRange = range(model.selection); let content = this.model.getValue(selRange, format);