Revert "suppress mouseout even when dragging a graphic selection"

This reverts commit 1e044a40aa.

The mouseout issue is going to be fixed by a cheery-picked commit:

"loleaflet: limit mouseout event to constrained dragging"
This commit is contained in:
Marco Cecchetti 2019-10-17 10:06:10 +02:00
parent df7e77415f
commit d0fb7d1f4f
2 changed files with 4 additions and 8 deletions

View file

@ -2597,8 +2597,7 @@ L.TileLayer = L.GridLayer.extend({
transform: true,
stroke: false,
fillOpacity: 0,
fill: true,
ignoreMouseOut: true
fill: true
});
if (!this._graphicMarker) {

View file

@ -7,8 +7,7 @@ L.SVGGroup = L.Layer.extend({
options: {
noClip: true,
manualDrag: false,
ignoreMouseOut: false
manualDrag: false
},
initialize: function (bounds, options) {
@ -69,8 +68,7 @@ L.SVGGroup = L.Layer.extend({
if (!this.options.manualDrag) {
L.DomEvent.on(this._dragShape, 'mousemove', this._onDrag, this);
L.DomEvent.on(this._dragShape, 'mouseup', this._onDragEnd, this);
if (!this.options.ignoreMouseOut)
L.DomEvent.on(this._dragShape, 'mouseout', this._onDragEnd, this);
L.DomEvent.on(this._dragShape, 'mouseout', this._onDragEnd, this);
}
var data = {
@ -102,8 +100,7 @@ L.SVGGroup = L.Layer.extend({
if (!this.options.manualDrag) {
L.DomEvent.off(this._dragShape, 'mousemove', this._onDrag, this);
L.DomEvent.off(this._dragShape, 'mouseup', this._onDragEnd, this);
if (!this.options.ignoreMouseOut)
L.DomEvent.off(this._dragShape, 'mouseout', this._onDragEnd, this);
L.DomEvent.off(this._dragShape, 'mouseout', this._onDragEnd, this);
}
this._moved = false;