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 bf3d404 commit cf8cb76Copy full SHA for cf8cb76
events.js
@@ -14,8 +14,8 @@ define([
14
//todo: should use has() module instead and
15
//consider loading touch and mspointer modules conditionally.
16
touch: ("ontouchstart" in document),
17
- pointer: (!!window.navigator.pointerEnabled),
18
- mspointer: (!!window.navigator.msPointerEnabled),
+ pointer: ("onpointerdown" in document),
+ mspointer: ("onmspointerdown" in document),
19
chrome: /chrome/i.test(navigator.userAgent),
20
mobile: /(mobile)|(android)/i.test(navigator.userAgent)
21
};
0 commit comments