From 6eb85b2c8cee8610dc234ba27ace75fda3b85f7f Mon Sep 17 00:00:00 2001 From: Eva Date: Wed, 26 Oct 2022 17:53:08 +0200 Subject: [PATCH 1/2] :bug: Fix nudge error --- CHANGES.md | 1 + backend/src/app/rpc/commands/auth.clj | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index bb0ad1e42..e3d82334a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ ### :bug: Bugs fixed +- Fix nudge error - Fix firefox changing layer color type is not applied [Taiga #4292](https://tree.taiga.io/project/penpot/issue/4292) - Fix justify alignes text left [Taiga #4322](https://tree.taiga.io/project/penpot/issue/4322) - Fix text out of borders with "auto width" and center align [Taiga #4308](https://tree.taiga.io/project/penpot/issue/4308) diff --git a/backend/src/app/rpc/commands/auth.clj b/backend/src/app/rpc/commands/auth.clj index 5ce869de5..3fc2527a4 100644 --- a/backend/src/app/rpc/commands/auth.clj +++ b/backend/src/app/rpc/commands/auth.clj @@ -287,7 +287,8 @@ props (-> (audit/extract-utm-params params) (merge (:props params)) (merge {:viewed-tutorial? false - :viewed-walkthrough? false}) + :viewed-walkthrough? false + :nudge {:big 10 :small 1}}) (db/tjson)) password (if-let [password (:password params)] From 21c9c205cb6a2cf4f06c420e3d3873ff24dff163 Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 27 Oct 2022 09:43:03 +0200 Subject: [PATCH 2/2] :bug: Add nudge by default --- frontend/src/app/main/data/workspace/transforms.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/transforms.cljs b/frontend/src/app/main/data/workspace/transforms.cljs index 84ba8d689..0842f1885 100644 --- a/frontend/src/app/main/data/workspace/transforms.cljs +++ b/frontend/src/app/main/data/workspace/transforms.cljs @@ -697,7 +697,7 @@ stopper (->> move-events (rx/debounce 100) (rx/take 1)) - scale (if shift? (gpt/point (:big nudge)) (gpt/point (:small nudge))) + scale (if shift? (gpt/point (or (:big nudge) 10)) (gpt/point (or (:small nudge) 1))) mov-vec (gpt/multiply (get-displacement direction) scale)] (rx/concat