1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

fix(browser): TOUCH_ENABLED detection with Win10 (#5286)

Fixes #3306
This commit is contained in:
Stefano Fedeli 2018-07-03 18:03:46 +02:00 committed by Gary Katsevman
parent 1b9bd42a1c
commit e683891183

View File

@ -85,5 +85,5 @@ export const IS_ANY_SAFARI = (IS_SAFARI || IS_IOS) && !IS_CHROME;
export const TOUCH_ENABLED = Dom.isReal() && (
'ontouchstart' in window ||
window.DocumentTouch &&
window.document instanceof window.DocumentTouch);
window.navigator.maxTouchPoints ||
window.DocumentTouch && window.document instanceof window.DocumentTouch);