Skip to content

Commit 8886e8c

Browse files
committed
Only try to decrement gesture dependency counter if dependency exists
Fixes #2397
1 parent d3a7c93 commit 8886e8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/standard/gestures.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@
334334
if (gd && gd[name]) {
335335
gd[name] = (gd[name] || 1) - 1;
336336
gd._count = (gd._count || 1) - 1;
337-
}
338-
if (gd._count === 0) {
339-
node.removeEventListener(dep, this.handleNative);
337+
if (gd._count === 0) {
338+
node.removeEventListener(dep, this.handleNative);
339+
}
340340
}
341341
}
342342
}

0 commit comments

Comments
 (0)