forked from 0x2620/oxjs
fix a bug where, when dragging on timeline, the dragend position might not be registered
This commit is contained in:
parent
9650a29a90
commit
46d71a5734
2 changed files with 49 additions and 52 deletions
|
|
@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue