[Pkg-javascript-commits] [dojo] 31/58: Update IE10+ feature detection for pointer event support. Use the window.MSPointerEvent instead of navigator.msPointerEnabled, which is deprecated.
David Prévot
taffit at moszumanska.debian.org
Thu Mar 24 04:28:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.10.5
in repository dojo.
commit 0ccf0f44a0d63d9a474a9dc9fb669d6ec58e5aec
Author: bitpshr <paulbouchon90 at gmail.com>
Date: Wed Sep 30 11:43:39 2015 -0400
Update IE10+ feature detection for pointer event support.
Use the window.MSPointerEvent instead of navigator.msPointerEnabled, which is deprecated.
Fixes #18602.
(cherry picked from commit 17ed3d6c61a787906ddae07176119508ef25cbac)
---
has.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/has.js b/has.js
index 8f0ed13..f1006c3 100644
--- a/has.js
+++ b/has.js
@@ -111,7 +111,7 @@ define(["require", "module"], function(require, module){
// Pointer Events support
has.add("pointer-events", "onpointerdown" in document);
- has.add("MSPointer", "msMaxTouchPoints" in navigator); //IE10 (+IE11 preview)
+ has.add("MSPointer", "MSPointerEvent" in window); //IE10 (+IE11 preview)
// I don't know if any of these tests are really correct, just a rough guess
has.add("device-width", screen.availWidth || innerWidth);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list