mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 00:31:40 +02:00
🐛 Fix horizontal margins drag don't always start from place
This commit is contained in:
parent
bc794816db
commit
b5fc074e35
2 changed files with 9 additions and 7 deletions
|
@ -42,6 +42,8 @@
|
||||||
- Fix problem when assigning color from palette or assets [Taiga #5050](https://tree.taiga.io/project/penpot/issue/5050)
|
- Fix problem when assigning color from palette or assets [Taiga #5050](https://tree.taiga.io/project/penpot/issue/5050)
|
||||||
- Fix shortcuts for alignment [Taiga #5030](https://tree.taiga.io/project/penpot/issue/5030)
|
- Fix shortcuts for alignment [Taiga #5030](https://tree.taiga.io/project/penpot/issue/5030)
|
||||||
- Fix path options not showing when editing rects or ellipses [Taiga #5053](https://tree.taiga.io/project/penpot/issue/5053)
|
- Fix path options not showing when editing rects or ellipses [Taiga #5053](https://tree.taiga.io/project/penpot/issue/5053)
|
||||||
|
- Fix tooltips for some alignment options are truncated on design tab [Taiga #5040](https://tree.taiga.io/project/penpot/issue/5040)
|
||||||
|
- Fix horizontal margins drag don't always start from place [Taiga #5020](https://tree.taiga.io/project/penpot/issue/5020)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
- To @ondrejkonec: for contributing to the code with:
|
- To @ondrejkonec: for contributing to the code with:
|
||||||
|
|
|
@ -307,7 +307,7 @@
|
||||||
|
|
||||||
on-pointer-down
|
on-pointer-down
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps frame-id padding-num)
|
(mf/deps frame-id rect-data padding-num)
|
||||||
(fn [event]
|
(fn [event]
|
||||||
(dom/capture-pointer event)
|
(dom/capture-pointer event)
|
||||||
(reset! resizing? true)
|
(reset! resizing? true)
|
||||||
|
@ -382,9 +382,9 @@
|
||||||
pill-width (/ flex-display-pill-width zoom)
|
pill-width (/ flex-display-pill-width zoom)
|
||||||
pill-height (/ flex-display-pill-height zoom)
|
pill-height (/ flex-display-pill-height zoom)
|
||||||
hover? #(or hover-all?
|
hover? #(or hover-all?
|
||||||
(and (or (= % :p1) (= % :p3)) hover-v?)
|
(and (or (= % :p1) (= % :p3)) hover-v?)
|
||||||
(and (or (= % :p2) (= % :p4)) hover-h?)
|
(and (or (= % :p2) (= % :p4)) hover-h?)
|
||||||
(= @hover %))
|
(= @hover %))
|
||||||
negate {:p1 (if (:flip-y frame) true false)
|
negate {:p1 (if (:flip-y frame) true false)
|
||||||
:p2 (if (:flip-x frame) true false)
|
:p2 (if (:flip-x frame) true false)
|
||||||
:p3 (if (:flip-y frame) true false)
|
:p3 (if (:flip-y frame) true false)
|
||||||
|
@ -854,9 +854,9 @@
|
||||||
(mf/defc padding
|
(mf/defc padding
|
||||||
[{:keys [frame zoom alt? shift?]}]
|
[{:keys [frame zoom alt? shift?]}]
|
||||||
(when frame
|
(when frame
|
||||||
[:g.measurement-gaps {:pointer-events "none"}
|
[:g.measurement-gaps {:pointer-events "none"}
|
||||||
[:g.hover-shapes
|
[:g.hover-shapes
|
||||||
[:& padding-rects {:frame frame :zoom zoom :alt? alt? :shift? shift?}]]]))
|
[:& padding-rects {:frame frame :zoom zoom :alt? alt? :shift? shift?}]]]))
|
||||||
|
|
||||||
(mf/defc gap
|
(mf/defc gap
|
||||||
[{:keys [frame zoom]}]
|
[{:keys [frame zoom]}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue