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 GitHub
parent fe01539e41
commit dcd45ca6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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