[PE] Fix Bug 35440.

This commit is contained in:
Julia Radzhabova 2017-08-11 16:09:30 +03:00
parent 6658c78f40
commit 2418ccb312
2 changed files with 27 additions and 1 deletions

View file

@ -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);
}, },

View file

@ -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;