diff --git a/js/drag.js b/js/drag.js index 625040e2..d2098df3 100644 --- a/js/drag.js +++ b/js/drag.js @@ -162,20 +162,16 @@ proto.pointerDownFocus = function( event ) { } }; -var touchStartEvents = { - touchstart: true, - pointerdown: true, -}; - var focusNodes = { INPUT: true, SELECT: true, }; function getCanPointerDown( event ) { - var isTouchStart = touchStartEvents[ event.type ]; + var isTouchStart = event.type == 'touchstart'; + var isTouchPointer = event.pointerType == 'touch'; var isFocusNode = focusNodes[ event.target.nodeName ]; - return isTouchStart || isFocusNode; + return isTouchStart || isTouchPointer || isFocusNode; } proto.canPreventDefaultOnPointerDown = function( event ) { diff --git a/sandbox/media.html b/sandbox/media.html index e0d4c348..f74f3f85 100644 --- a/sandbox/media.html +++ b/sandbox/media.html @@ -142,7 +142,7 @@

media