Remove TOUCH, POINTER and MSPOINTER from ol/has

This commit is contained in:
Frederic Junod
2019-05-31 12:35:59 +01:00
parent 579d05a0cb
commit 7c215b2532
5 changed files with 17 additions and 35 deletions
-26
View File
@@ -39,30 +39,4 @@ export const MAC = ua.indexOf('macintosh') !== -1;
*/
export const DEVICE_PIXEL_RATIO = window.devicePixelRatio || 1;
/**
* True if browser supports touch events.
* @const
* @type {boolean}
* @api
*/
export const TOUCH = 'ontouchstart' in window;
/**
* True if browser supports pointer events.
* @const
* @type {boolean}
*/
export const POINTER = 'PointerEvent' in window;
/**
* True if browser supports ms pointer events (IE 10).
* @const
* @type {boolean}
*/
export const MSPOINTER = !!(navigator.msPointerEnabled);
export {HAS as WEBGL} from './webgl.js';