minor changes
This commit is contained in:
parent
297ac0a141
commit
9ea5cce853
2 changed files with 6 additions and 5 deletions
|
@ -255,7 +255,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
self.$videoContainer = $('<div>')
|
||||
self.$videoContainer = Ox.Element()
|
||||
.addClass('OxVideoContainer')
|
||||
.css({
|
||||
top: self.options.externalControls && self.options.controlsTop.length ? '16px' : 0,
|
||||
|
@ -264,12 +264,13 @@ Ox.VideoPlayer = function(options, self) {
|
|||
|
||||
if (self.options.type == 'play') {
|
||||
|
||||
self.options.enableMouse && self.$videoContainer.bind({
|
||||
click: function(e) {
|
||||
self.options.enableMouse && self.$videoContainer.bindEvent({
|
||||
anyclick: function(e) {
|
||||
if (!$(e.target).is('.OxLogo')) {
|
||||
togglePaused();
|
||||
}
|
||||
}
|
||||
// fixme: support drag (left-right)
|
||||
});
|
||||
|
||||
self.$video = Ox.VideoElement(
|
||||
|
|
Loading…
Reference in a new issue