From 04a9fba17ae4a42f0c589ac01614f693f3bdc6b9 Mon Sep 17 00:00:00 2001 From: Vika Abysova Date: Wed, 25 Oct 2023 11:18:54 +0300 Subject: [PATCH] make shorter conditional in ToolArea --- src/engine/tools2d/ToolArea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/tools2d/ToolArea.js b/src/engine/tools2d/ToolArea.js index c945df05..9137d7ac 100644 --- a/src/engine/tools2d/ToolArea.js +++ b/src/engine/tools2d/ToolArea.js @@ -81,7 +81,7 @@ class ToolArea { this.m_hScreen, store ); - if (j === 0) { + if (!j) { lastPoint.x = vScrProj_S.x; lastPoint.y = vScrProj_S.y; }