Skip to content

Commit 8e5cbb2

Browse files
author
codezapper
committed
Updated time when dragging
1 parent c65ff6d commit 8e5cbb2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • PyLister/lister/static/lister

PyLister/lister/static/lister/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ function bindUI() {
193193
start: function(event, ui) {
194194
player.unbind('timeupdate', timeUpdate);
195195
},
196+
drag: function(event, ui) {
197+
if (playerElement.duration > 0) {
198+
currentTime.html(parseInt(playerElement.duration * clickPercent(event)).toMMSS());
199+
}
200+
},
196201
stop: function(event, ui) {
197202
if (duration > 0) {
198203
playerElement.currentTime = parseInt(playerElement.duration * clickPercent(event));

0 commit comments

Comments
 (0)