forked from 0x2620/oxjs
player/timeline: differentiate between drag (positioning event) and dragend (position event), fixes #1657
This commit is contained in:
parent
a9c60fe05f
commit
e93b196e67
5 changed files with 38 additions and 13 deletions
|
|
@ -124,7 +124,7 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
getPosition(data), 0, self.options.duration
|
||||
), 3);
|
||||
setPosition();
|
||||
triggerPositionEvent();
|
||||
that.triggerEvent('position', {position: self.options.position});
|
||||
}
|
||||
|
||||
function dragstart(data) {
|
||||
|
|
@ -139,11 +139,12 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
), 3);
|
||||
self.drag.x = data.clientX;
|
||||
setPosition();
|
||||
triggerPositionEvent();
|
||||
that.triggerEvent('positioning', {position: self.options.position});
|
||||
}
|
||||
|
||||
function dragend() {
|
||||
Ox.$body.removeClass('OxDragging');
|
||||
that.triggerEvent('position', {position: self.options.position});
|
||||
}
|
||||
|
||||
function getImageURL(i, callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue