mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix pointer event normalization when using viewState (#1355)
This commit is contained in:
parent
fe01539e41
commit
dcd45ca6f9
@ -141,7 +141,7 @@ function normalizeEvent(event) {
|
||||
const pos = [x, y];
|
||||
|
||||
const viewport = new WebMercatorViewport(
|
||||
Object.assign({}, this.props, {
|
||||
Object.assign({}, this.props, this.props.viewState, {
|
||||
width: this.width,
|
||||
height: this.height
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user