diff --git a/src/modules/esl-utils/environment/device-detector.ts b/src/modules/esl-utils/environment/device-detector.ts index 4f8dab550..84c627cca 100644 --- a/src/modules/esl-utils/environment/device-detector.ts +++ b/src/modules/esl-utils/environment/device-detector.ts @@ -52,6 +52,12 @@ export abstract class DeviceDetector { return ('ontouchstart' in window) || ('DocumentTouch' in window && document instanceof Touch); } + // Hover check + // Note: always true for IE + public static get hasHover() { + return !matchMedia('(hover: none)').matches; + } + static get TOUCH_EVENTS() { const isTouch = DeviceDetector.isTouchDevice; return {