@annotorious/annotorious 3.7.5 → 3.7.7

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.
@@ -1524,7 +1524,7 @@ const Ai = 250, ki = (e, t) => {
1524
1524
  }, m = (E, S) => {
1525
1525
  E ? i.setSelected(E, S) : i.clear();
1526
1526
  }, g = (E) => {
1527
- i.clear(), i.setUserSelectAction(E);
1527
+ i.setUserSelectAction(E);
1528
1528
  }, k = (E) => {
1529
1529
  if (n) {
1530
1530
  const S = n.parse(E).parsed, y = n.serialize(o.getAnnotation(S.id));
@@ -4842,6 +4842,7 @@ function Ds(e, t, n) {
4842
4842
  ));
4843
4843
  }
4844
4844
  }, S = (C) => {
4845
+ if (!p) return;
4845
4846
  const T = C;
4846
4847
  if (m && clearTimeout(m), a === "click") {
4847
4848
  const U = T.timeStamp - f.timeStamp, R = ut([f.offsetX, f.offsetY], [T.offsetX, T.offsetY]);