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
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue