From 6e867e00d17ce22d7b0083a600a934de35254f74 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sun, 10 Mar 2024 20:27:34 -0700 Subject: [PATCH] Reduce timeout wait beofre setData Signed-off-by: Justin Georgi --- src/pages/detect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 8ba271c..a7991a6 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -361,11 +361,11 @@ imCanvas.style['background-image'] = `url(${this.imageView.src})` /****** * setTimeout is not a good solution, but it's the only way - * I can find to not cut off drawing of the progress spinner + * I can find to not cut off drawing of the canvas background ******/ setTimeout(() => { this.setData() - }, 250) + }, 1) }).catch((e) => { console.log(e.message) f7.dialog.alert(`Error loading image: ${e.message}`)