leaflet: update mouse position on dialogs to allow rollover
Change-Id: Ib5cb9192c10e82603a96713d32bc18427b0ddc39
This commit is contained in:
parent
33aff0ce61
commit
9fe3059b76
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue