@annotorious/annotorious 3.7.7 → 3.7.9
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.
package/dist/annotorious.es.js
CHANGED
|
@@ -4842,7 +4842,6 @@ function Ds(e, t, n) {
|
|
|
4842
4842
|
));
|
|
4843
4843
|
}
|
|
4844
4844
|
}, S = (C) => {
|
|
4845
|
-
if (!p) return;
|
|
4846
4845
|
const T = C;
|
|
4847
4846
|
if (m && clearTimeout(m), a === "click") {
|
|
4848
4847
|
const U = T.timeStamp - f.timeStamp, R = ut([f.offsetX, f.offsetY], [T.offsetX, T.offsetY]);
|
|
@@ -4853,8 +4852,9 @@ function Ds(e, t, n) {
|
|
|
4853
4852
|
const q = u.elementToImage(T.offsetX, T.offsetY);
|
|
4854
4853
|
h.push(q), n(10, p = q);
|
|
4855
4854
|
} else
|
|
4856
|
-
h.push(p);
|
|
4855
|
+
p && h.push(p);
|
|
4857
4856
|
} else {
|
|
4857
|
+
if (!p) return;
|
|
4858
4858
|
if (h.length === 1 && ut(h[0], p) <= 4) {
|
|
4859
4859
|
n(0, h = []), n(10, p = void 0);
|
|
4860
4860
|
return;
|