Don't use withFrozenRendering in ol.interaction.Select#handleMapBrowserEvent
This commit is contained in:
@@ -97,11 +97,6 @@ ol.interaction.Select.prototype.handleMapBrowserEvent =
|
|||||||
var add = this.addCondition_(mapBrowserEvent);
|
var add = this.addCondition_(mapBrowserEvent);
|
||||||
var map = mapBrowserEvent.map;
|
var map = mapBrowserEvent.map;
|
||||||
var features = this.featureOverlay_.getFeatures();
|
var features = this.featureOverlay_.getFeatures();
|
||||||
map.withFrozenRendering(
|
|
||||||
/**
|
|
||||||
* @this {ol.interaction.Select}
|
|
||||||
*/
|
|
||||||
function() {
|
|
||||||
if (add) {
|
if (add) {
|
||||||
map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
|
map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
|
||||||
/**
|
/**
|
||||||
@@ -140,7 +135,6 @@ ol.interaction.Select.prototype.handleMapBrowserEvent =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, this);
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user