1
0
Fork 0
forked from 0x2620/oxjs

player/timeline: differentiate between drag (positioning event) and dragend (position event), fixes #1657

This commit is contained in:
rlx 2013-08-27 11:38:01 +00:00
commit e93b196e67
5 changed files with 38 additions and 13 deletions

View file

@ -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) {