Change ol.BrowserFeature.HAS_POINTER feature detection

Because navigator.pointerEnabled will not be part of the final spec.
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890
This commit is contained in:
Frederic Junod
2014-03-11 14:31:04 +01:00
committed by tsauerwein
parent a13ade90ad
commit aee76c989d
2 changed files with 1 additions and 15 deletions

View File

@@ -164,16 +164,11 @@ ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH ||
/**
* True if browser supports pointer events.
*
* `navigation.pointerEnabled` is actually not part of the
* spec: https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890#c3
*
* @const
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_POINTER =
!!(goog.global.navigator.pointerEnabled);
ol.BrowserFeature.HAS_POINTER = 'PointerEvent' in goog.global;
/**