Test if browser supports Windows Pointer events
This commit is contained in:
@@ -15,5 +15,6 @@ ol.BrowserFeature = {
|
|||||||
* @type {boolean} True if browser supports touch events
|
* @type {boolean} True if browser supports touch events
|
||||||
*/
|
*/
|
||||||
HAS_TOUCH: ol.ASSUME_TOUCH ||
|
HAS_TOUCH: ol.ASSUME_TOUCH ||
|
||||||
(document && 'ontouchstart' in document.documentElement)
|
(document && 'ontouchstart' in document.documentElement) ||
|
||||||
|
!!(window.navigator.msPointerEnabled)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user