Reduce timeout wait beofre setData

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-03-10 20:27:34 -07:00
parent ea43aa3306
commit 6e867e00d1

View File

@@ -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}`)