Merge pull request #1870 from fredj/has-touch

Fix ol.BrowserFeature.HAS_TOUCH detection code
This commit is contained in:
Frédéric Junod
2014-03-18 08:00:56 +01:00

View File

@@ -157,9 +157,7 @@ ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator;
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH ||
(goog.global.document &&
'ontouchstart' in goog.global.document.documentElement);
ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH || 'ontouchstart' in goog.global;
/**