@soomo/text-annotator 3.1.0-staging.1 → 3.1.0-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2271,7 +2271,7 @@ const ce = 300, Te = ["up", "down", "left", "right"], Re = _e ? "⌘+a" : "ctrl+
|
|
|
2271
2271
|
...c,
|
|
2272
2272
|
selector: M.map((tt) => $e(tt, t, n)),
|
|
2273
2273
|
updated: /* @__PURE__ */ new Date()
|
|
2274
|
-
}, o.getAnnotation(c.annotation)
|
|
2274
|
+
}, o.getAnnotation(c.annotation) ? o.updateTarget(c, k.LOCAL) : i.clear());
|
|
2275
2275
|
}, 10), m = (S) => {
|
|
2276
2276
|
var w;
|
|
2277
2277
|
p || (w = S.target.parentElement) != null && w.closest(j) || (l = Et(S), f = l.button === 0);
|
|
@@ -2289,7 +2289,8 @@ const ce = 300, Te = ["up", "down", "left", "right"], Re = _e ? "⌘+a" : "ctrl+
|
|
|
2289
2289
|
if (D) {
|
|
2290
2290
|
const { selected: N } = i;
|
|
2291
2291
|
(N.length !== 1 || N[0].id !== D.id) && i.userSelect(D.id, S);
|
|
2292
|
-
} else
|
|
2292
|
+
} else
|
|
2293
|
+
i.clear();
|
|
2293
2294
|
}, x = S.timeStamp - l.timeStamp;
|
|
2294
2295
|
setTimeout(() => {
|
|
2295
2296
|
const B = document.getSelection();
|