fix a bug with toggling paused state
This commit is contained in:
parent
8521eb36ba
commit
53f57939ec
1 changed files with 6 additions and 2 deletions
|
@ -79,7 +79,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
self.options.position += 1 / self.fps;
|
||||
setPosition();
|
||||
},
|
||||
key_space: togglePaused,
|
||||
key_space: function() {
|
||||
togglePaused()
|
||||
},
|
||||
key_up: function() {
|
||||
self.options.position -= self.contentWidth / self.fps;
|
||||
setPosition();
|
||||
|
@ -97,7 +99,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
float: 'left'
|
||||
})
|
||||
.bindEvent({
|
||||
click: togglePaused
|
||||
click: function() {
|
||||
togglePaused();
|
||||
}
|
||||
})
|
||||
.appendTo(self.$bottomBar);
|
||||
self.$muteButton = Ox.Button({
|
||||
|
|
Loading…
Reference in a new issue