Skip to content

Commit cf8cb76

Browse files
author
Sebastien Pereira
committed
Remove use of deprecated navigator.pointerEnabled. Fixes #12.
1 parent bf3d404 commit cf8cb76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

events.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ define([
1414
//todo: should use has() module instead and
1515
//consider loading touch and mspointer modules conditionally.
1616
touch: ("ontouchstart" in document),
17-
pointer: (!!window.navigator.pointerEnabled),
18-
mspointer: (!!window.navigator.msPointerEnabled),
17+
pointer: ("onpointerdown" in document),
18+
mspointer: ("onmspointerdown" in document),
1919
chrome: /chrome/i.test(navigator.userAgent),
2020
mobile: /(mobile)|(android)/i.test(navigator.userAgent)
2121
};

0 commit comments

Comments
 (0)