Fix pointer event normalization when using viewState (#1355)

This commit is contained in:
Xiaoji Chen 2021-02-16 10:51:21 -08:00 committed by Xiaoji Chen
parent 4a88e0d5b5
commit 720fed5e5b

View File

@ -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
})