loleaflet: Selecting table does not reset handler.

This commit is contained in:
Henry Castro 2015-06-29 00:18:04 -04:00
parent d25ed90b1e
commit fa3b208b7f

View file

@ -887,10 +887,10 @@ L.TileLayer = L.GridLayer.extend({
// Update text selection handlers.
_onUpdateTextSelection: function () {
if (this._selections.getLayers().length !== 0) {
if ( this._startMarker.isDragged === true || this._endMarker.isDragged === true)
return;
if ( this._startMarker.isDragged === true || this._endMarker.isDragged === true)
return;
if (this._selections.getLayers().length !== 0) {
if (!this._isEmptyRectangle(this._textSelectionStart)) {
this._startMarker.setLatLng(this._textSelectionStart.getSouthWest());
this._map.addLayer(this._startMarker);