Skip to content

Commit bd0ea80

Browse files
committed
v1.0.4
1 parent 1ca8942 commit bd0ea80

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/swapy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function Mt(t, e) {
148148
let o = t.el(), l = !1, i = null, d = null, u = null, a = null, h = 0, s = 0, c = 0, f = 0, y = 0, v = 0, g = 0, T = 0, r = 0, A = 0, E = null, p;
149149
o.addEventListener("pointerdown", w), document.body.addEventListener("pointerup", x), document.body.addEventListener("pointermove", X), document.body.addEventListener("touchmove", M, { passive: !1 });
150150
function w(m) {
151-
if (n.targetEl && m.target !== n.targetEl || l || !m.isPrimary) return;
151+
if (n.targetEl && m.target !== n.targetEl && !n.targetEl.contains(m.target) || l || !m.isPrimary) return;
152152
n.startDelay > 0 ? (u == null || u({ el: m.target }), p = setTimeout(() => {
153153
B();
154154
}, n.startDelay)) : B();

0 commit comments

Comments
 (0)