Add ol.ASSUME_TOUCH @define
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
goog.provide('ol.BrowserFeature');
|
goog.provide('ol.BrowserFeature');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @define {boolean} Assume touch.
|
||||||
|
*/
|
||||||
|
ol.ASSUME_TOUCH = false;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature = {
|
ol.BrowserFeature = {
|
||||||
// Do we have touch events?
|
// Do we have touch events?
|
||||||
HAS_TOUCH: document && 'ontouchstart' in document.documentElement
|
HAS_TOUCH: ol.ASSUME_TOUCH ||
|
||||||
|
(document && 'ontouchstart' in document.documentElement)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user