1
0
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:
Darren Nolan 2016-12-23 07:20:43 +11:00 committed by Gary Katsevman
parent e92db4f407
commit 42507f8c11

View File

@ -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