1
0
Fork 0
forked from 0x2620/oxjs

fix a bug where, when dragging on timeline, the dragend position might not be registered

This commit is contained in:
rolux 2011-05-17 20:01:40 +02:00
commit 46d71a5734
2 changed files with 49 additions and 52 deletions

View file

@ -56,6 +56,10 @@ Ox.SmallVideoTimeline = function(options, self) {
.bindEvent({
drag: function(event, e) {
mousedown(e);
},
dragend: function(event, e) {
self.triggered = false;
mousedown(e);
}
})
.appendTo(that);
@ -224,7 +228,7 @@ Ox.SmallVideoTimeline = function(options, self) {
self.$positionMarker.css({
left: self.interfaceLeft + Math.round(
self.options.position * self.imageWidth / self.options.duration
) - (self.options.type == 'editor' ? 4 : 0) + self.options._offset + 'px',
) - (self.options.type == 'editor' ? 4 : 0) + self.options._offset + 'px'
});
}