From 1db2fb04d23f8b783ffb15d327619c833c83d724 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 19 Nov 2020 15:08:03 +1100 Subject: [PATCH] Fix pointer being shown when tapping map controls on touch devices --- src/components/map/MapPointer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/MapPointer.js b/src/components/map/MapPointer.js index 440910e..17934d4 100644 --- a/src/components/map/MapPointer.js +++ b/src/components/map/MapPointer.js @@ -44,7 +44,7 @@ function MapPointer({ } function handleBrushMove() { - onPointerMove && onPointerMove(getBrushPosition()); + onPointerMove && visible && onPointerMove(getBrushPosition()); } function handleBrushUp() {