mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 17:51:38 +02:00
🐛 Fix problem with disappearing frame titles
This commit is contained in:
parent
ca8df3a8d8
commit
24f45fafbf
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
[app.main.ui.workspace.viewport.path-actions :refer [path-actions]]
|
[app.main.ui.workspace.viewport.path-actions :refer [path-actions]]
|
||||||
[app.main.ui.workspace.viewport.utils :as vwu]
|
[app.main.ui.workspace.viewport.utils :as vwu]
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
|
[app.util.timers :as ts]
|
||||||
[debug :refer [debug?]]
|
[debug :refer [debug?]]
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
|
@ -86,7 +87,8 @@
|
||||||
|
|
||||||
|
|
||||||
(mf/defc frame-title
|
(mf/defc frame-title
|
||||||
{::mf/wrap [mf/memo]}
|
{::mf/wrap [mf/memo
|
||||||
|
#(mf/deferred % ts/raf)]}
|
||||||
[{:keys [frame selected? zoom show-artboard-names? on-frame-enter on-frame-leave on-frame-select]}]
|
[{:keys [frame selected? zoom show-artboard-names? on-frame-enter on-frame-leave on-frame-select]}]
|
||||||
(let [workspace-read-only? (mf/use-ctx ctx/workspace-read-only?)
|
(let [workspace-read-only? (mf/use-ctx ctx/workspace-read-only?)
|
||||||
on-mouse-down
|
on-mouse-down
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue