[SSE] Fix Bug 41069

This commit is contained in:
Julia Radzhabova 2019-04-03 16:03:20 +03:00
parent 3e6449457f
commit 7237ecd510

View file

@ -121,6 +121,7 @@ define([
$(document).on('mousedown', _.bind(me.onDocumentRightDown, me));
$(document).on('mouseup', _.bind(me.onDocumentRightUp, me));
$(document).on('keydown', _.bind(me.onDocumentKeyDown, me));
$(document).on('mousemove', _.bind(me.onDocumentMouseMove, me));
$(window).on('resize', _.bind(me.onDocumentResize, me));
var viewport = SSE.getController('Viewport').getView('Viewport');
viewport.hlayout.on('layout:resizedrag', _.bind(me.onDocumentResize, me));
@ -1456,6 +1457,12 @@ define([
(data.type == 'mouseup') && (this.mouse.isLeftButtonDown = false);
},
onDocumentMouseMove: function(e) {
if (e.target.localName !== 'canvas') {
this.hideHyperlinkTip();
}
},
showObjectMenu: function(event){
if (this.api && !this.mouse.isLeftButtonDown && !this.rangeSelectionMode){
(this.permissions.isEdit && !this._isDisabled) ? this.fillMenuProps(this.api.asc_getCellInfo(), true, event) : this.fillViewMenuProps(this.api.asc_getCellInfo(), true, event);