From 2665440e8de5c0791ed829b54fe2fec8c32f8cbd Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 6 Dec 2024 07:50:11 +0100 Subject: [PATCH] Enable custom cursors on Safari 11.4 and up FIX: Stop disabling custom cursors on Safari version 11.4 and up, which support `caret-color`. Issue https://github.com/codemirror/dev/issues/1487 --- src/draw-selection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw-selection.ts b/src/draw-selection.ts index bbd625e..13a60e3 100644 --- a/src/draw-selection.ts +++ b/src/draw-selection.ts @@ -5,7 +5,7 @@ import {EditorView} from "./editorview" import {layer, RectangleMarker} from "./layer" import browser from "./browser" -const CanHidePrimary = !browser.ios // FIXME test IE +const CanHidePrimary = !(browser.ios && browser.webkit && browser.webkit_version < 534) type SelectionConfig = { /// The length of a full cursor blink cycle, in milliseconds.