File tree 1 file changed +6
-1
lines changed
src/js/control-bar/progress-control
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import LoadProgressBar from './load-progress-bar.js';
8
8
import PlayProgressBar from './play-progress-bar.js' ;
9
9
import TooltipProgressBar from './tooltip-progress-bar.js' ;
10
10
import * as Fn from '../../utils/fn.js' ;
11
+ import { IE_VERSION , IS_IOS , IS_ANDROID } from '../../utils/browser.js' ;
11
12
import formatTime from '../../utils/format-time.js' ;
12
13
import assign from 'object.assign' ;
13
14
@@ -158,12 +159,16 @@ class SeekBar extends Slider {
158
159
SeekBar . prototype . options_ = {
159
160
children : [
160
161
'loadProgressBar' ,
161
- 'mouseTimeDisplay' ,
162
162
'playProgressBar'
163
163
] ,
164
164
'barName' : 'playProgressBar'
165
165
} ;
166
166
167
+ // MouseTimeDisplay tooltips should not be added to a player on mobile devices or IE8
168
+ if ( ( ! IE_VERSION || IE_VERSION > 8 ) && ! IS_IOS && ! IS_ANDROID ) {
169
+ SeekBar . prototype . options_ . children . splice ( 1 , 0 , 'mouseTimeDisplay' ) ;
170
+ }
171
+
167
172
SeekBar . prototype . playerEvent = 'timeupdate' ;
168
173
169
174
Component . registerComponent ( 'SeekBar' , SeekBar ) ;
You can’t perform that action at this time.
0 commit comments