[Pkg-javascript-commits] [leaflet] 20/78: Backport L.Browser.mspointer detection from #3674
Jonas Smedegaard
dr at jones.dk
Sat May 7 08:58:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet.
commit 610993f565b3048ea7b4908c2717e4e878930eed
Author: Iván Sánchez Ortega <ivan at sanchezortega.es>
Date: Tue Aug 4 21:54:53 2015 +0200
Backport L.Browser.mspointer detection from #3674
---
src/core/Browser.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/core/Browser.js b/src/core/Browser.js
index be8b54b..326276d 100644
--- a/src/core/Browser.js
+++ b/src/core/Browser.js
@@ -17,8 +17,7 @@
gecko = ua.indexOf('gecko') !== -1,
mobile = typeof orientation !== undefined + '',
- msPointer = window.navigator && window.navigator.msPointerEnabled &&
- window.navigator.msMaxTouchPoints && !window.PointerEvent,
+ msPointer = !window.PointerEvent && window.MSPointerEvent,
pointer = (window.PointerEvent && window.navigator.pointerEnabled && window.navigator.maxTouchPoints) ||
msPointer,
retina = ('devicePixelRatio' in window && window.devicePixelRatio > 1) ||
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git
More information about the Pkg-javascript-commits
mailing list