Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Dec 4, 2024
1 parent ef9009a commit edc14bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renderers/opengl/msdf.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,9 @@
(let ((label (presentations:find-shape :label component)))
(when label
(alloy:with-unit-parent component
(alloy:move-to (estimate-cursor-pos label (alloy:location event) (alloy:bounds component)) component)))))
(let ((pos (estimate-cursor-pos label (alloy:location event) (alloy:bounds component))))
(when pos
(alloy:move-to pos component)))))))

(defclass selection (opengl::polygon simple:selection) ())

Expand Down

0 comments on commit edc14bb

Please sign in to comment.