File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,11 @@ ionic.tap = {
170
170
( ele . tagName == 'INPUT' && ( / ^ ( d a t e | t i m e | d a t e t i m e - l o c a l | m o n t h | w e e k ) $ / i) . test ( ele . type ) ) ;
171
171
} ,
172
172
173
+ isVideo : function ( ele ) {
174
+ return ! ! ele &&
175
+ ( ele . tagName == 'VIDEO' ) ;
176
+ } ,
177
+
173
178
isKeyboardElement : function ( ele ) {
174
179
if ( ! ionic . Platform . isIOS ( ) || ionic . Platform . isIPad ( ) ) {
175
180
return ionic . tap . isTextInput ( ele ) && ! ionic . tap . isDateInput ( ele ) ;
@@ -356,11 +361,13 @@ function tapMouseDown(e) {
356
361
console . log ( 'mousedown' , 'stop event' ) ;
357
362
e . stopPropagation ( ) ;
358
363
359
- if ( ( ! ionic . tap . isTextInput ( e . target ) || tapLastTouchTarget !== e . target ) && ! isSelectOrOption ( e . target . tagName ) ) {
364
+ if ( ( ! ionic . tap . isTextInput ( e . target ) || tapLastTouchTarget !== e . target ) && ! isSelectOrOption ( e . target . tagName ) && ! ionic . tap . isVideo ( e . target ) ) {
360
365
// If you preventDefault on a text input then you cannot move its text caret/cursor.
361
366
// Allow through only the text input default. However, without preventDefault on an
362
367
// input the 300ms delay can change focus on inputs after the keyboard shows up.
363
368
// The focusin event handles the chance of focus changing after the keyboard shows.
369
+ // Windows Phone - if you preventDefault on a video element then you cannot operate
370
+ // its native controls.
364
371
e . preventDefault ( ) ;
365
372
}
366
373
You can’t perform that action at this time.
0 commit comments