Remove ASSUME_TOUCH

This commit is contained in:
Tim Schaub
2017-12-12 17:08:50 -07:00
parent 8bf00cbfb7
commit 0a12ca690f
2 changed files with 2 additions and 9 deletions

View File

@@ -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;
/** /**

View File

@@ -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,