From 8f4e13072cbf7736a416595be764df48cdc47358 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 24 Feb 2021 13:17:16 +0100 Subject: [PATCH] :bug: Fixes issues with frame selection --- CHANGES.md | 2 ++ common/app/common/pages/helpers.cljc | 1 + frontend/src/app/main/data/workspace.cljs | 2 +- frontend/src/app/main/data/workspace/transforms.cljs | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7d93daffb..808b399f8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -30,7 +30,9 @@ - Add some missing database indexes (mainly improves performance on large databases on file-update rpc method, and some background tasks). - Fix broken bounding box on editing paths [Taiga #1254](https://tree.taiga.io/project/penpot/issue/1254) - Fix corner cases on invitation/signup flows. +- Fix errors on onboarding file [Taiga #1287](https://tree.taiga.io/project/penpot/issue/1287) - Fix infinite recursion on logout. +- Fix issues with frame selection [Taiga #1300](https://tree.taiga.io/project/penpot/issue/1300), [Taiga #1255](https://tree.taiga.io/project/penpot/issue/1255) - Fix problem width handoff code generation [Taiga #1204](https://tree.taiga.io/project/penpot/issue/1204) - Fix problem with indices refreshing on page changes [#646](https://github.com/penpot/penpot/issues/646) - Have language change notification written in the new language [Taiga #1205](https://tree.taiga.io/project/penpot/issue/1205) diff --git a/common/app/common/pages/helpers.cljc b/common/app/common/pages/helpers.cljc index ca025949f..e630801da 100644 --- a/common/app/common/pages/helpers.cljc +++ b/common/app/common/pages/helpers.cljc @@ -353,6 +353,7 @@ (let [frames (select-frames objects)] (or (->> frames + (reverse) (d/seek #(and position (gsh/has-point? % position))) :id) uuid/zero))) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index ab4cb2101..ed09670ac 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1003,7 +1003,7 @@ result (let [group (get objects current-id)] - (if (and (not= uuid/zero current-id) + (if (and (not= :frame (:type group)) (not= current-id parent-id) (empty? (remove removed-id? (:shapes group)))) diff --git a/frontend/src/app/main/data/workspace/transforms.cljs b/frontend/src/app/main/data/workspace/transforms.cljs index b102be822..57be6ef0b 100644 --- a/frontend/src/app/main/data/workspace/transforms.cljs +++ b/frontend/src/app/main/data/workspace/transforms.cljs @@ -373,7 +373,6 @@ (rx/of (set-modifiers selected) (apply-modifiers selected) - (calculate-frame-for-move selected) (fn [state] (-> state (update :workspace-local dissoc :modifiers) (update :workspace-local dissoc :current-move-selected)))