1
0
Fork 0
forked from 0x2620/oxjs

add some touch support

- fire touch(start|move|end) events after adding clinetX/Y
- use touch events in video and timeline widgets
- use touchstart to select item in ArrayEditable
This commit is contained in:
j 2016-07-27 21:13:09 +02:00
commit f043242640
7 changed files with 81 additions and 6 deletions

View file

@ -215,7 +215,13 @@ Ox.VideoTimelinePlayer = function(options, self) {
key_up: function() {
self.options.position -= self.contentWidth / self.fps;
setPosition();
}
},
touchend: function (e) {
mousedown(e);
mouseleave();
},
touchmove: mousedown,
touchstart: mousedown
});
self.$playerbar = Ox.Bar({size: 16});