mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 14:11:39 +02:00
🐛 Fix deactivation of show distances when alt-tab is used
This commit is contained in:
parent
568338ad68
commit
f3754d0c55
3 changed files with 4 additions and 6 deletions
|
@ -149,7 +149,7 @@
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
(mf/deps focus-out)
|
(mf/deps focus-out)
|
||||||
(fn []
|
(fn []
|
||||||
(let [keys [(events/listen globals/document EventType.FOCUSOUT focus-out)]]
|
(let [keys [(events/listen globals/window EventType.BLUR focus-out)]]
|
||||||
#(doseq [key keys]
|
#(doseq [key keys]
|
||||||
(events/unlistenByKey key)))))
|
(events/unlistenByKey key)))))
|
||||||
|
|
||||||
|
|
|
@ -591,5 +591,4 @@
|
||||||
[:& grid-layout/editor
|
[:& grid-layout/editor
|
||||||
{:zoom zoom
|
{:zoom zoom
|
||||||
:objects base-objects
|
:objects base-objects
|
||||||
:shape (get base-objects edition)}])
|
:shape (get base-objects edition)}])]]]))
|
||||||
]]]))
|
|
||||||
|
|
|
@ -173,8 +173,7 @@
|
||||||
(->> move-stream
|
(->> move-stream
|
||||||
(rx/tap #(reset! last-point-ref %))
|
(rx/tap #(reset! last-point-ref %))
|
||||||
;; When transforming shapes we stop querying the worker
|
;; When transforming shapes we stop querying the worker
|
||||||
(rx/merge-map query-point)
|
(rx/merge-map query-point)))))]
|
||||||
))))]
|
|
||||||
|
|
||||||
;; Refresh the refs on a value change
|
;; Refresh the refs on a value change
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue