mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 17:21:17 -05:00
Restore workspace scroll with space.
This commit is contained in:
parent
6f90f343e6
commit
33fd84623f
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@
|
|||
(letfn [(handle-scroll-interaction []
|
||||
(let [stoper (->> uuc/actions-s
|
||||
(rx/map :type)
|
||||
(rx/filter #(not= % :scroll/viewport))
|
||||
(rx/filter #(empty? %))
|
||||
(rx/take 1))
|
||||
local (:rum/local own)
|
||||
initial @uuwb/mouse-viewport-a]
|
||||
|
@ -70,7 +70,7 @@
|
|||
sub1 (as-> uuc/actions-s $
|
||||
(rx/map :type $)
|
||||
(rx/dedupe $)
|
||||
(rx/filter #(= :scroll/viewport %) $)
|
||||
(rx/filter #(= "ui.workspace.scroll" %) $)
|
||||
(rx/on-value $ handle-scroll-interaction))
|
||||
sub2 (udp/watch-page-changes pageid)]
|
||||
(set! (.-scrollLeft el) uuwb/canvas-start-scroll-x)
|
||||
|
|
Loading…
Add table
Reference in a new issue