From 34febe22b0410c671f1a077667174d5da9b0886d Mon Sep 17 00:00:00 2001 From: raclim Date: Thu, 5 Dec 2024 17:48:39 -0500 Subject: [PATCH] set visiblity if canvas isPlaying --- client/modules/Preview/previewIndex.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/Preview/previewIndex.jsx b/client/modules/Preview/previewIndex.jsx index d16a182f7..aa4cdb0f6 100644 --- a/client/modules/Preview/previewIndex.jsx +++ b/client/modules/Preview/previewIndex.jsx @@ -56,7 +56,7 @@ const App = () => { dispatchMessage(payload); break; case MessageTypes.COORDINATES_VISIBILITY: - setCoordinatesVisible(payload); + if (isPlaying) setCoordinatesVisible(payload); break; default: break;