diff --git a/src/ol/has.js b/src/ol/has.js index 7428ec4c60..c529f1abf4 100644 --- a/src/ol/has.js +++ b/src/ol/has.js @@ -1,7 +1,7 @@ /** * @module ol/has */ -import {ENABLE_CANVAS, ASSUME_TOUCH, HAS_WEBGL} from './index.js'; +import {ENABLE_CANVAS, HAS_WEBGL} from './index.js'; var _ol_has_ = {}; @@ -105,7 +105,7 @@ _ol_has_.GEOLOCATION = 'geolocation' in navigator; * @type {boolean} * @api */ -_ol_has_.TOUCH = ASSUME_TOUCH || 'ontouchstart' in window; +_ol_has_.TOUCH = 'ontouchstart' in window; /** diff --git a/src/ol/index.js b/src/ol/index.js index 8ed1aced3b..8bc8c7e1e5 100644 --- a/src/ol/index.js +++ b/src/ol/index.js @@ -5,12 +5,6 @@ import webgl from './webgl.js'; -/** - * @type {boolean} Assume touch. Default is `false`. - */ -export var ASSUME_TOUCH = false; - - /** * @type {string} Default WMS version. */ @@ -165,7 +159,6 @@ export default { nullFunction: nullFunction, inherits: inherits, VERSION: VERSION, - ASSUME_TOUCH: ASSUME_TOUCH, DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION, ENABLE_CANVAS: ENABLE_CANVAS, ENABLE_PROJ4JS: ENABLE_PROJ4JS,