mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 07:11:32 -05:00
🐛 Fix bad element positioning on interaction with fixed scroll
This commit is contained in:
parent
1f00d91dd7
commit
33f7cec933
3 changed files with 16 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
||||||
- Fix style for team invite in deutsch [Taiga #4614](https://tree.taiga.io/project/penpot/issue/4614)
|
- Fix style for team invite in deutsch [Taiga #4614](https://tree.taiga.io/project/penpot/issue/4614)
|
||||||
- Fix problem with text edition in Safari [Taiga #4046](https://tree.taiga.io/project/penpot/issue/4046)
|
- Fix problem with text edition in Safari [Taiga #4046](https://tree.taiga.io/project/penpot/issue/4046)
|
||||||
- Fix show outline with rounded corners on rects [Taiga #4053](https://tree.taiga.io/project/penpot/issue/4053)
|
- Fix show outline with rounded corners on rects [Taiga #4053](https://tree.taiga.io/project/penpot/issue/4053)
|
||||||
|
- Fix bad element positioning on interaction with fixed scroll [Github #2660](https://github.com/penpot/penpot/issues/2660)
|
||||||
|
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
|
|
|
@ -484,5 +484,18 @@
|
||||||
ids)))
|
ids)))
|
||||||
st/state =))
|
st/state =))
|
||||||
|
|
||||||
|
|
||||||
|
(defn get-viewer-objects
|
||||||
|
([]
|
||||||
|
(let [route (deref route)
|
||||||
|
page-id (:page-id (:query-params route))]
|
||||||
|
(get-viewer-objects page-id)))
|
||||||
|
([page-id]
|
||||||
|
(l/derived
|
||||||
|
(fn [state]
|
||||||
|
(let [objects (wsh/lookup-viewer-objects state page-id)]
|
||||||
|
objects))
|
||||||
|
st/state =)))
|
||||||
|
|
||||||
(def colorpicker
|
(def colorpicker
|
||||||
(l/derived :colorpicker st/state))
|
(l/derived :colorpicker st/state))
|
||||||
|
|
|
@ -58,7 +58,8 @@
|
||||||
|
|
||||||
:open-overlay
|
:open-overlay
|
||||||
(let [dest-frame-id (:destination interaction)
|
(let [dest-frame-id (:destination interaction)
|
||||||
dest-frame (get objects dest-frame-id)
|
viewer-objects (deref (refs/get-viewer-objects))
|
||||||
|
dest-frame (get viewer-objects dest-frame-id)
|
||||||
relative-to-id (if (= :manual (:overlay-pos-type interaction))
|
relative-to-id (if (= :manual (:overlay-pos-type interaction))
|
||||||
(:id shape) ;; manual interactions are allways from "self"
|
(:id shape) ;; manual interactions are allways from "self"
|
||||||
(:position-relative-to interaction))
|
(:position-relative-to interaction))
|
||||||
|
|
Loading…
Add table
Reference in a new issue