Merge pull request #3453 from penpot/azazeln28-fix-thumbnail-rendering-flashing

🐛 Fix thumbnail rendering flashing
This commit is contained in:
Alejandro
2023-07-31 09:21:55 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -98,6 +98,7 @@
- Fix cannot undo layer styles [Taiga #5676](https://tree.taiga.io/project/penpot/issue/5676)
- Fix unexpected exception on boolean shapes [Taiga #5685](https://tree.taiga.io/project/penpot/issue/5685)
- Fix ctrl+z on select not working [Taiga #5677](https://tree.taiga.io/project/penpot/issue/5677)
- Fix thubmnail rendering flashing [Taiga #5675](https://tree.taiga.io/project/penpot/issue/5675)
### :arrow_up: Deps updates

View File

@@ -96,7 +96,6 @@
render-frame* (mf/use-state (not thumbnail-uri))
debug? (debug? :thumbnails)
on-bitmap-load
(mf/use-fn
(fn []
@@ -164,6 +163,8 @@
(when (not= "false" (dom/get-data image-node "ready"))
(dom/set-data! image-node "ready" "false")))
(when-not ^boolean @disable*
(reset! svg-uri* nil)
(reset! bitmap-uri* nil)
(reset! render-frame* true)
(reset! regenerate* true))))