leaflet: update mouse position on dialogs to allow rollover

Change-Id: Ib5cb9192c10e82603a96713d32bc18427b0ddc39
This commit is contained in:
Ashod Nakashian 2018-10-28 23:49:51 -04:00 committed by Jan Holesovsky
parent 33aff0ce61
commit 9fe3059b76

View file

@ -322,8 +322,7 @@ L.Control.LokDialog = L.Control.extend({
L.DomEvent.on(dialogCanvas, 'contextmenu', L.DomEvent.preventDefault);
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._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);