[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/src
Tamás Zolnai
tamas.zolnai at collabora.com
Fri Apr 20 16:53:30 UTC 2018
loleaflet/src/control/Control.LokDialog.js | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 83f200b41bd48d850aea68e22b1637e13882c52a
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/53103
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 2c2c7bf72..aea8d2699 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -292,6 +292,10 @@ L.Control.LokDialog = L.Control.extend({
this._createDialogCursor(strDlgId);
var dlgInput = this._createDialogInput(strDlgId);
+ L.DomEvent.on(dialogCanvas, 'mousemove', function(e) {
+ 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);
var buttons = 0;
More information about the Libreoffice-commits
mailing list