mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
Merge pull request #1713 from penpot/keep-pencil-cursor
🐛 Pencil cursor changes when activated
This commit is contained in:
commit
7d483b36d0
2 changed files with 6 additions and 3 deletions
|
@ -41,6 +41,7 @@
|
|||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
- Pencil cursor changes when activated [Taiga #2276](https://tree.taiga.io/project/penpot/issue/2276)
|
||||
- Fix icon placement in Mixed message [Taiga #3037](https://tree.taiga.io/project/penpot/issue/3037)
|
||||
- Fix scroll in comment section [Taiga #3068](https://tree.taiga.io/project/penpot/issue/3068)
|
||||
- Remove a decimal sets value to 0 [Taiga #3059](https://tree.taiga.io/project/penpot/issue/3054)
|
||||
|
|
|
@ -62,7 +62,10 @@
|
|||
(mf/use-effect
|
||||
(mf/deps @cursor @alt? @ctrl? @space? panning drawing-tool drawing-path? path-editing?)
|
||||
(fn []
|
||||
(let [new-cursor
|
||||
(let [show-pen? (or (= drawing-tool :path)
|
||||
(and drawing-path?
|
||||
(not= drawing-tool :curve)))
|
||||
new-cursor
|
||||
(cond
|
||||
(and @ctrl? @space?) (utils/get-cursor :zoom)
|
||||
(or panning @space?) (utils/get-cursor :hand)
|
||||
|
@ -70,8 +73,7 @@
|
|||
(= drawing-tool :frame) (utils/get-cursor :create-artboard)
|
||||
(= drawing-tool :rect) (utils/get-cursor :create-rectangle)
|
||||
(= drawing-tool :circle) (utils/get-cursor :create-ellipse)
|
||||
(or (= drawing-tool :path)
|
||||
drawing-path?) (utils/get-cursor :pen)
|
||||
show-pen? (utils/get-cursor :pen)
|
||||
(= drawing-tool :curve) (utils/get-cursor :pencil)
|
||||
drawing-tool (utils/get-cursor :create-shape)
|
||||
(and @alt? (not path-editing?)) (utils/get-cursor :duplicate)
|
||||
|
|
Loading…
Add table
Reference in a new issue