0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

Prevent page persistence when shape is resizing.

This commit is contained in:
Andrey Antukh 2016-12-20 16:55:51 +01:00
parent b5248bf520
commit 0a5f4e310c
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -9,10 +9,11 @@
[cuerdas.core :as str]
[beicon.core :as rx]
[lentes.core :as l]
[uxbox.main.repo :as rp]
[uxbox.store :as st]
[uxbox.util.spec :as us]
[potok.core :as ptk]
[uxbox.store :as st]
[uxbox.main.repo :as rp]
[uxbox.util.rlocks :as rlocks]
[uxbox.util.spec :as us]
[uxbox.util.router :as r]
[uxbox.util.i18n :refer (tr)]
[uxbox.util.forms :as sc]
@ -308,6 +309,7 @@
(rx/merge
(->> stream
(rx/take-until stopper)
(rx/filter #(not= @rlocks/lock :shape/resize))
(rx/filter #(satisfies? IPageUpdate %))
(rx/debounce 1000)
(rx/map #(persist-page id)))