0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-27 09:16:17 -05:00

Merge pull request #2714 from penpot/superalex-fix-ignoring-boolean-operations-on-ctrl-click-actions

🐛 Fix ignore booleans on ctrl + click selection
This commit is contained in:
Pablo Alba 2022-12-30 12:11:30 +01:00 committed by GitHub
commit 4442246e08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,6 @@
(mf/deps page-id) (mf/deps page-id)
(fn [point] (fn [point]
(let [zoom (mf/ref-val zoom-ref) (let [zoom (mf/ref-val zoom-ref)
mod? (mf/ref-val mod-ref)
rect (gsh/center->rect point (/ 5 zoom) (/ 5 zoom))] rect (gsh/center->rect point (/ 5 zoom) (/ 5 zoom))]
(if (mf/ref-val hover-disabled-ref) (if (mf/ref-val hover-disabled-ref)
(rx/of nil) (rx/of nil)
@ -135,7 +134,7 @@
:page-id page-id :page-id page-id
:rect rect :rect rect
:include-frames? true :include-frames? true
:clip-children? (not mod?)}) :clip-children? true})
;; When the ask-buffered is canceled returns null. We filter them ;; When the ask-buffered is canceled returns null. We filter them
;; to improve the behavior ;; to improve the behavior
(rx/filter some?)))))) (rx/filter some?))))))