mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 23:21:38 +02:00
🚧 Initial work on multicanvas feature.
This commit is contained in:
parent
176ca590e1
commit
807555d478
32 changed files with 1408 additions and 1495 deletions
|
@ -52,7 +52,7 @@
|
|||
(let [prev-zoom @refs/selected-zoom
|
||||
dom (mf/ref-node canvas)
|
||||
scroll-position (scroll/get-current-position-absolute dom)
|
||||
mouse-point @uws/viewport-mouse-position]
|
||||
mouse-point @uws/mouse-position]
|
||||
(dom/prevent-default event)
|
||||
(dom/stop-propagation event)
|
||||
(if (pos? (.-deltaY event))
|
||||
|
@ -62,7 +62,7 @@
|
|||
|
||||
(defn- subscribe
|
||||
[canvas page]
|
||||
(scroll/scroll-to-page-center (mf/ref-node canvas) page)
|
||||
;; (scroll/scroll-to-page-center (mf/ref-node canvas) page)
|
||||
(st/emit! (udp/watch-page-changes (:id page))
|
||||
(udu/watch-page-changes (:id page)))
|
||||
(let [sub (shortcuts/init)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue