Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit b09554f

Browse files
committed
Do not hit test if a touch pointer is being captured
Fixes #121
1 parent fbe4ebe commit b09554f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/touch.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@
149149
// Spec specifies that pointerId 1 is reserved for Mouse.
150150
// Touch identifiers can start at 0.
151151
// Add 2 to the touch identifier for compatibility.
152-
e.pointerId = inTouch.identifier + 2;
153-
e.target = findTarget(e);
152+
var pi = e.pointerId = inTouch.identifier + 2;
153+
var ci = dispatcher.captureInfo;
154+
var t = ci && ci.id === pi && ci.target;
155+
e.target = t || findTarget(e);
154156
e.bubbles = true;
155157
e.cancelable = true;
156158
e.detail = this.clickCount;

0 commit comments

Comments
 (0)