@annotorious/openseadragon 3.3.4 → 3.3.5
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.
|
@@ -30425,7 +30425,7 @@ function PA(r, t, e) {
|
|
|
30425
30425
|
const w = S.originalEvent, { x: T, y: N } = S.position, F = T - y.x, z = N - y.y;
|
|
30426
30426
|
if (Math.sqrt(F * F + z * z) < 5) {
|
|
30427
30427
|
const { x: E, y: I } = _(S.position), P = u.getAt(E, I);
|
|
30428
|
-
P ? p("click", { originalEvent: w, annotation: P }) : p("click", { originalEvent: w });
|
|
30428
|
+
P ? (!n || n(P)) && p("click", { originalEvent: w, annotation: P }) : p("click", { originalEvent: w });
|
|
30429
30429
|
}
|
|
30430
30430
|
y = void 0;
|
|
30431
30431
|
};
|