mirror of
https://github.com/penpot/penpot.git
synced 2025-02-26 00:36:12 -05:00
Merge pull request #3453 from penpot/azazeln28-fix-thumbnail-rendering-flashing
🐛 Fix thumbnail rendering flashing
This commit is contained in:
commit
4e1dfcce32
2 changed files with 3 additions and 1 deletions
|
@ -98,6 +98,7 @@
|
||||||
- Fix cannot undo layer styles [Taiga #5676](https://tree.taiga.io/project/penpot/issue/5676)
|
- 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 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 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
|
### :arrow_up: Deps updates
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,6 @@
|
||||||
render-frame* (mf/use-state (not thumbnail-uri))
|
render-frame* (mf/use-state (not thumbnail-uri))
|
||||||
debug? (debug? :thumbnails)
|
debug? (debug? :thumbnails)
|
||||||
|
|
||||||
|
|
||||||
on-bitmap-load
|
on-bitmap-load
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(fn []
|
(fn []
|
||||||
|
@ -164,6 +163,8 @@
|
||||||
(when (not= "false" (dom/get-data image-node "ready"))
|
(when (not= "false" (dom/get-data image-node "ready"))
|
||||||
(dom/set-data! image-node "ready" "false")))
|
(dom/set-data! image-node "ready" "false")))
|
||||||
(when-not ^boolean @disable*
|
(when-not ^boolean @disable*
|
||||||
|
(reset! svg-uri* nil)
|
||||||
|
(reset! bitmap-uri* nil)
|
||||||
(reset! render-frame* true)
|
(reset! render-frame* true)
|
||||||
(reset! regenerate* true))))
|
(reset! regenerate* true))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue