trigger playing instead of position event while playing

This commit is contained in:
j 2013-07-08 12:10:44 +00:00
parent cc1cede9bc
commit 59f4c0d3ed

View file

@ -1233,7 +1233,7 @@ Ox.VideoEditor = function(options, self) {
position: self.options.position
});
if (!playing || minute != previousMinute) {
that.triggerEvent('position', {
that.triggerEvent(playing ? 'playing' : 'position', {
position: !playing ? self.options.position : minute * 60
});
}