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

@ -97,6 +97,7 @@ Ox.VideoPlayer <f> Generic Video Player
paused <!> paused
playing <!> playing
position <!> position
positioning <!> positioning
resolution <!> resolution
scale <!> scale
select <!> select
@ -1259,7 +1260,7 @@ Ox.VideoPlayer = function(options, self) {
function drag(e) {
setPosition(self.drag.position - e.clientDX / 25);
that.triggerEvent('position', {
that.triggerEvent('positioning', {
position: self.options.position
});
}
@ -1267,6 +1268,9 @@ Ox.VideoPlayer = function(options, self) {
function dragend() {
Ox.$body.removeClass('OxDragging');
!self.drag.paused && togglePaused();
that.triggerEvent('position', {
position: self.options.position
});
}
function durationchange() {