Remove ASSUME_TOUCH
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @module ol/has
|
* @module ol/has
|
||||||
*/
|
*/
|
||||||
import {ENABLE_CANVAS, ASSUME_TOUCH, HAS_WEBGL} from './index.js';
|
import {ENABLE_CANVAS, HAS_WEBGL} from './index.js';
|
||||||
|
|
||||||
var _ol_has_ = {};
|
var _ol_has_ = {};
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ _ol_has_.GEOLOCATION = 'geolocation' in navigator;
|
|||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
_ol_has_.TOUCH = ASSUME_TOUCH || 'ontouchstart' in window;
|
_ol_has_.TOUCH = 'ontouchstart' in window;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,12 +5,6 @@
|
|||||||
import webgl from './webgl.js';
|
import webgl from './webgl.js';
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {boolean} Assume touch. Default is `false`.
|
|
||||||
*/
|
|
||||||
export var ASSUME_TOUCH = false;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {string} Default WMS version.
|
* @type {string} Default WMS version.
|
||||||
*/
|
*/
|
||||||
@@ -165,7 +159,6 @@ export default {
|
|||||||
nullFunction: nullFunction,
|
nullFunction: nullFunction,
|
||||||
inherits: inherits,
|
inherits: inherits,
|
||||||
VERSION: VERSION,
|
VERSION: VERSION,
|
||||||
ASSUME_TOUCH: ASSUME_TOUCH,
|
|
||||||
DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION,
|
DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION,
|
||||||
ENABLE_CANVAS: ENABLE_CANVAS,
|
ENABLE_CANVAS: ENABLE_CANVAS,
|
||||||
ENABLE_PROJ4JS: ENABLE_PROJ4JS,
|
ENABLE_PROJ4JS: ENABLE_PROJ4JS,
|
||||||
|
|||||||
Reference in New Issue
Block a user