mirror of
https://github.com/videojs/video.js.git
synced 2025-01-13 10:32:26 +02:00
fix: don't emit tap events on tech when using native controls (#3873)
If using nativeControlsForTouch, skip the emitTapEvents listeners from being setup. This avoids taps being taken away from native video elements and stopping controls being displayed.
This commit is contained in:
parent
e92db4f407
commit
42507f8c11
@ -140,8 +140,10 @@ class Tech extends Component {
|
||||
this.initTextTrackListeners();
|
||||
this.initTrackListeners();
|
||||
|
||||
// Turn on component tap events
|
||||
this.emitTapEvents();
|
||||
// Turn on component tap events only if not using native controls
|
||||
if (!options.nativeControlsForTouch) {
|
||||
this.emitTapEvents();
|
||||
}
|
||||
}
|
||||
|
||||
/* Fallbacks for unsupported event types
|
||||
|
Loading…
Reference in New Issue
Block a user