From dcd45ca6f9ff9e1bdcd5406b89db106fd805d38d Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Tue, 16 Feb 2021 10:51:21 -0800 Subject: [PATCH] Fix pointer event normalization when using viewState (#1355) --- src/components/interactive-map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/interactive-map.js b/src/components/interactive-map.js index b0c9829c..1b73e25d 100644 --- a/src/components/interactive-map.js +++ b/src/components/interactive-map.js @@ -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 })