aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-10-23 11:09:11 +1100
committerGitHub <noreply@github.com>2018-10-23 11:09:11 +1100
commit7559cc68977d109c0a2f7dd14301af2fb31e97e0 (patch)
tree85491ce1fe9e8a93c41d6aaa86ccd40340ec289c /src/js/plyr.js
parentfac134dd955fe1a264a68897cd49d06a5afd9750 (diff)
parent69d0d6d7eec8729da952aeea497db8f747a0ddfb (diff)
downloadplyr-7559cc68977d109c0a2f7dd14301af2fb31e97e0.tar.lz
plyr-7559cc68977d109c0a2f7dd14301af2fb31e97e0.tar.xz
plyr-7559cc68977d109c0a2f7dd14301af2fb31e97e0.zip
Merge pull request #1226 from jamesoflol/dont-hide-mobile-controls-immediately
Prevent immediate hiding of controls on mobile
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 77582dd7..ebc0b733 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -302,6 +302,9 @@ class Plyr {
if (this.config.autoplay) {
this.play();
}
+
+ // Seek time will be recorded (in listeners.js) so we can prevent hiding controls for a few seconds after seek
+ this.lastSeekTime = 0;
}
// ---------------------------------------