Fire pointer events even if no interactive features are involved (#1895)

This commit is contained in:
Xiaoji Chen 2022-06-17 10:14:43 -07:00 committed by GitHub
parent 268b59849e
commit 9dbe4f0f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -810,9 +810,6 @@ export default class Mapbox {
this._map.queryRenderedFeatures(e.point, {
layers: this.props.interactiveLayerIds
});
if (!features.length) {
return;
}
e.features = features;
}
cb(e);