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 ) ;
@@ -351,11 +356,13 @@ function tapMouseDown(e) {
351
356
console . log ( 'mousedown' , 'stop event' ) ;
352
357
e . stopPropagation ( ) ;
353
358
354
- if ( ( ! ionic . tap . isTextInput ( e . target ) || tapLastTouchTarget !== e . target ) && ! ( / ^ ( s e l e c t | o p t i o n ) $ / i) . test ( e . target . tagName ) ) {
359
+ if ( ( ! ionic . tap . isTextInput ( e . target ) || tapLastTouchTarget !== e . target ) && ! ( / ^ ( s e l e c t | o p t i o n ) $ / i) . test ( e . target . tagName ) && ! ionic . tap . isVideo ( e . target ) ) {
355
360
// If you preventDefault on a text input then you cannot move its text caret/cursor.
356
361
// Allow through only the text input default. However, without preventDefault on an
357
362
// input the 300ms delay can change focus on inputs after the keyboard shows up.
358
363
// The focusin event handles the chance of focus changing after the keyboard shows.
364
+ // Windows Phone - if you preventDefault on a video element then you cannot operate
365
+ // its native controls.
359
366
e . preventDefault ( ) ;
360
367
}
361
368
You can’t perform that action at this time.
0 commit comments