mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🐛 Fix zooming while color picker breaks UI
This commit is contained in:
parent
ee8f071025
commit
e8b87b0db1
4 changed files with 12 additions and 4 deletions
|
@ -1,5 +1,11 @@
|
|||
# CHANGELOG
|
||||
|
||||
## 1.18.4
|
||||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
- Fix zooming while color picker breaks UI [GH #3214](https://github.com/penpot/penpot/issues/3214)
|
||||
|
||||
## 1.18.3
|
||||
|
||||
### :bug: Bugs fixed
|
||||
|
|
|
@ -361,9 +361,10 @@
|
|||
(fn [event]
|
||||
(let [event (.getBrowserEvent ^js event)
|
||||
target (dom/get-target event)
|
||||
mod? (kbd/mod? event)]
|
||||
mod? (kbd/mod? event)
|
||||
picking-color? (= "pixel-overlay" (.-id target))]
|
||||
|
||||
(when (uwvv/inside-viewport? target)
|
||||
(when (or (uwvv/inside-viewport? target) picking-color?)
|
||||
(dom/prevent-default event)
|
||||
(dom/stop-propagation event)
|
||||
(let [raw-pt (dom/get-client-position event)
|
||||
|
|
|
@ -183,7 +183,8 @@
|
|||
|
||||
[:*
|
||||
[:div.pixel-overlay
|
||||
{:tab-index 0
|
||||
{:id "pixel-overlay"
|
||||
:tab-index 0
|
||||
:style {:cursor cur/picker}
|
||||
:on-pointer-down handle-pointer-down-picker
|
||||
:on-pointer-up handle-pointer-up-picker
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.18.3
|
||||
1.18.4
|
||||
|
|
Loading…
Reference in a new issue