forked from 0x2620/oxjs
fix video editor bugs
This commit is contained in:
parent
3c94f44a99
commit
76466e7eeb
6 changed files with 63 additions and 47 deletions
|
|
@ -285,7 +285,9 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
}
|
||||
|
||||
function crossesPoint() {
|
||||
var sort = [self.position, self.options.position].sort(),
|
||||
var sort = [self.position, self.options.position].sort(function(a, b) {
|
||||
return a - b
|
||||
}),
|
||||
positionA = sort[0],
|
||||
positionB = sort[1];
|
||||
return self.points.some(function(point) {
|
||||
|
|
@ -389,9 +391,9 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
|
||||
function getSort() {
|
||||
return ({
|
||||
duration: ['-duration', '+in', '+value'],
|
||||
position: ['+in', '-duration', '+value'],
|
||||
text: ['+value', '+in', '-duration']
|
||||
duration: ['+duration', '+in', '+value'],
|
||||
position: ['+in', '+duration', '+value'],
|
||||
text: ['+value', '+in', '+duration']
|
||||
})[self.options.sort];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue