Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
335a8333
Commit
335a8333
authored
Dec 11, 2019
by
Roman Karwacik
Browse files
Merge branch 'patch-double-tap-seek' into 'master'
Ignore double tap on status bar See merge request
!25
parents
5b98883b
23dc9287
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/macros.html
View file @
335a8333
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment