We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54f4b4 commit 1cf976aCopy full SHA for 1cf976a
handlers/utils.js
@@ -85,7 +85,7 @@ define([
85
var e = createMouseEvent(pointerType, props);
86
fixButtonsProperties(e, props.buttons);
87
setPointerProperties(e, props);
88
- mapNativeFunctions(e);
+ mapNativeFunctions(e, nativeEvent);
89
return e;
90
};
91
@@ -332,6 +332,9 @@ define([
332
* @param nativeEvent underlying event which contributes to this pointer event.
333
*/
334
function mapNativeFunctions(e, nativeEvent) {
335
+ if (e.type === utils.GOTCAPTURE || e.type === utils.LOSTCAPTURE) {
336
+ return; //no default action on pointercapture events
337
+ }
338
var _stopPropagation = e.stopPropagation,
339
_preventDefault = e.preventDefault;
340
e.stopPropagation = function () {
0 commit comments