Commit 335a8333 authored by Roman Karwacik's avatar Roman Karwacik

Merge branch 'patch-double-tap-seek' into 'master'

Ignore double tap on status bar

See merge request !25
parents 5b98883b 23dc9287
......@@ -76,11 +76,13 @@ $(function() {
manager.add(DoubleTap);
manager.on('doubletap', function(e) {
if(e.center.x<(e.target.clientWidth/2)) {
player.currentTime(player.currentTime() - 15);
} else {
player.currentTime(player.currentTime() + 15);
}
if((e.target.clientHeight-e.center.y)>document.getElementsByClassName("vjs-control-bar")[0].clientHeight) {
if(e.center.x<(e.target.clientWidth/2)) {
player.currentTime(player.currentTime() - 15);
} else {
player.currentTime(player.currentTime() + 15);
}
}
});
videojs("videoplayer").ready(function() {
//resume
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment