[PE] Fix Bug 35440.
This commit is contained in:
parent
6658c78f40
commit
2418ccb312
|
@ -246,6 +246,15 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
this.separatorFullScreen = el.find('.separator.fullscreen');
|
this.separatorFullScreen = el.find('.separator.fullscreen');
|
||||||
|
|
||||||
|
var controls = $(this.el).find('.preview-controls');
|
||||||
|
controls.on('mouseenter', function(e) {
|
||||||
|
clearTimeout(me.timerMove);
|
||||||
|
controls.addClass('over');
|
||||||
|
});
|
||||||
|
controls.on('mouseleave', function(e) {
|
||||||
|
controls.removeClass('over');
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function() {
|
show: function() {
|
||||||
|
@ -263,6 +272,22 @@ define([
|
||||||
iconEl.addClass('btn-pause');
|
iconEl.addClass('btn-pause');
|
||||||
this.btnPlay.updateHint(this.txtPause);
|
this.btnPlay.updateHint(this.txtPause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var me = this;
|
||||||
|
var controls = $(this.el).find('.preview-controls');
|
||||||
|
controls.css('display', 'none');
|
||||||
|
|
||||||
|
setTimeout(function(){
|
||||||
|
me.$el.on('mousemove', function() {
|
||||||
|
clearTimeout(me.timerMove);
|
||||||
|
controls.css('display', '');
|
||||||
|
if (!controls.hasClass('over'))
|
||||||
|
me.timerMove = setTimeout(function () {
|
||||||
|
controls.css('display', 'none');
|
||||||
|
}, 3000);
|
||||||
|
|
||||||
|
});
|
||||||
|
}, 1000);
|
||||||
$('#viewport-vbox-layout').css('z-index','0');
|
$('#viewport-vbox-layout').css('z-index','0');
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
@ -279,6 +304,7 @@ define([
|
||||||
toolbar.onCollaborativeChanges();
|
toolbar.onCollaborativeChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$el.off('mousemove');
|
||||||
this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
#preview-goto-box {
|
#preview-goto-box {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 35px;
|
bottom: 33px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-left: 80px;
|
margin-left: 80px;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
|
|
Loading…
Reference in a new issue