[Libreoffice-commits] online.git: loleaflet/src

Tamás Zolnai tamas.zolnai at collabora.com
Fri Apr 20 16:52:27 UTC 2018


 loleaflet/src/control/Control.LokDialog.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 835f7c2d50c5f21ab02e39e27755d2038dc55a6d
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date:   Tue Apr 17 20:06:13 2018 +0200

    Mouse hover effect for context menu
    
    Change-Id: I305704a9da0634367922ab9c29e2956b3ead9624
    Reviewed-on: https://gerrit.libreoffice.org/53059
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 5766458c8..48dacd53d 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -290,8 +290,10 @@ L.Control.LokDialog = L.Control.extend({
 		var dlgInput = this._createDialogInput(strDlgId);
 
 		L.DomEvent.on(dialogCanvas, 'contextmenu', L.DomEvent.preventDefault);
-		L.DomEvent.on(dialogCanvas, 'mousemove', function() {
+		L.DomEvent.on(dialogCanvas, 'mousemove', function(e) {
 			this._map.lastActiveTime = Date.now();
+			if (!this._dialogs[this._currentId].title) // For context menu
+				this._postWindowMouseEvent('move', this._toRawDlgId(strDlgId), e.offsetX, e.offsetY, 1, 0, 0);
 		}, this);
 		L.DomEvent.on(dialogCanvas, 'mousedown mouseup', function(e) {
 			L.DomEvent.stopPropagation(e);


More information about the Libreoffice-commits mailing list