0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

🐛 Fix problem when drawing boxes won't detect mouse-up

This commit is contained in:
alonso.torres 2022-12-28 11:06:16 +01:00 committed by Alejandro Alonso
parent aed7f0ad43
commit 074864a6bf
2 changed files with 18 additions and 14 deletions

View file

@ -29,6 +29,7 @@
- Fix bad element positioning on interaction with fixed scroll [Github #2660](https://github.com/penpot/penpot/issues/2660) - Fix bad element positioning on interaction with fixed scroll [Github #2660](https://github.com/penpot/penpot/issues/2660)
- Fix display type of component library not persistent [Taiga #4512](https://tree.taiga.io/project/penpot/issue/4512) - Fix display type of component library not persistent [Taiga #4512](https://tree.taiga.io/project/penpot/issue/4512)
- Fix problem when moving texts with keyboard [#2690](https://github.com/penpot/penpot/issues/2690) - Fix problem when moving texts with keyboard [#2690](https://github.com/penpot/penpot/issues/2690)
- Fix problem when drawing boxes won't detect mouse-up [Taiga #4618](https://tree.taiga.io/project/penpot/issue/4618)
### :arrow_up: Deps updates ### :arrow_up: Deps updates

View file

@ -94,6 +94,8 @@
(rx/of #(assoc-in state [:workspace-drawing :object] shape)) (rx/of #(assoc-in state [:workspace-drawing :object] shape))
;; Initial SNAP ;; Initial SNAP
(->>
(rx/concat
(->> (snap/closest-snap-point page-id [shape] objects layout zoom focus initial) (->> (snap/closest-snap-point page-id [shape] objects layout zoom focus initial)
(rx/map move-drawing)) (rx/map move-drawing))
@ -106,7 +108,8 @@
(rx/map #(conj current %))))) (rx/map #(conj current %)))))
(rx/map (rx/map
(fn [[_ shift? point]] (fn [[_ shift? point]]
#(update-drawing % initial (cond-> point snap-pixel? gpt/round) shift?))) #(update-drawing % initial (cond-> point snap-pixel? gpt/round) shift?)))))
(rx/take-until stoper)) (rx/take-until stoper))
(rx/of (common/handle-finish-drawing)))))))
(->> (rx/of (common/handle-finish-drawing))
(rx/delay 100)))))))