1
0
Fork 0
forked from 0x2620/oxjs

video editor update

This commit is contained in:
rlx 2012-01-10 20:19:28 +05:30
commit 88f31a5ae3
10 changed files with 245 additions and 65 deletions

View file

@ -1,11 +1,17 @@
'use strict';
/*@
Ox.SmallVideoTimeline <f> Small Video Timeline
@*/
Ox.SmallVideoTimeline = function(options, self) {
self = self || {};
var that = Ox.Element({}, self)
.defaults({
_offset: 0, // hack for cases where all these position: absolute elements have to go into a float: left
// _offset is a hack for cases where all these position: absolute
// elements have to go into a float: left
_offset: 0,
disabled: false,
duration: 0,
find: '',
@ -53,9 +59,6 @@ Ox.SmallVideoTimeline = function(options, self) {
width: self.interfaceWidth + 'px',
height: '20px',
})
.bind({
mousedown: mousedown
})
.bindEvent({
drag: function(data) {
mousedown(data);
@ -63,7 +66,8 @@ Ox.SmallVideoTimeline = function(options, self) {
dragend: function(data) {
self.triggered = false;
mousedown(data);
}
},
mousedown: mousedown
})
.appendTo(that);