@guardian/interactive-component-library 0.7.8 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -172,7 +172,7 @@ class Map {
|
|
|
172
172
|
const matchingFeatures = [];
|
|
173
173
|
for (const layer of this.layers) {
|
|
174
174
|
const layerExtent = layer.getExtent();
|
|
175
|
-
if (layer.hitDetectionEnabled && containsCoordinate(layerExtent, mapCoordinate)) {
|
|
175
|
+
if (layerExtent && layer.hitDetectionEnabled && containsCoordinate(layerExtent, mapCoordinate)) {
|
|
176
176
|
const features = layer.findFeatures(mapCoordinate);
|
|
177
177
|
if (features) {
|
|
178
178
|
matchingFeatures.push(...features);
|
|
@@ -234,7 +234,7 @@ class Map {
|
|
|
234
234
|
if (event.type === "wheel" && !event[this._zoomBypassKey]) {
|
|
235
235
|
return filterEvent(true);
|
|
236
236
|
}
|
|
237
|
-
if ("targetTouches" in event && this.collaborativeGesturesEnabled) {
|
|
237
|
+
if ("targetTouches" in event && this.collaborativeGesturesEnabled()) {
|
|
238
238
|
if (event.targetTouches.length < 2) {
|
|
239
239
|
return false;
|
|
240
240
|
}
|