From e0f64c97ba71da50056f9e9fb370558fa7644f45 Mon Sep 17 00:00:00 2001 From: Jascha Bakarinow Date: Wed, 21 Jul 2021 23:23:31 +0200 Subject: [PATCH] Fix brushPreview lagging behind --- js/_mouseEvents.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/_mouseEvents.js b/js/_mouseEvents.js index c4b4969..478dce3 100644 --- a/js/_mouseEvents.js +++ b/js/_mouseEvents.js @@ -217,8 +217,6 @@ function draw (mouseEvent) { //if a document hasnt yet been created or the current layer is locked, exit this function if (!documentCreated || dialogueOpen || !currentLayer.isVisible || currentLayer.isLocked) return; - // Moving brush preview - currentTool.moveBrushPreview(cursorLocation); // Hiding eyedropper, will be shown if it's needed eyedropperPreview.style.display = 'none'; @@ -307,6 +305,9 @@ function draw (mouseEvent) { for (let i=1; i