actually fixed selection bug

This commit is contained in:
Michael Freno
2025-11-08 22:56:04 -05:00
parent 93a4750d54
commit 0a88c952bb

View File

@@ -3323,7 +3323,11 @@ function Element:update(dt)
-- Focus editable elements on left click
if button == 1 and self.editable then
self:focus()
-- Only focus if not already focused (to avoid moving cursor to end)
local wasFocused = self:isFocused()
if not wasFocused then
self:focus()
end
-- Handle text click for cursor positioning and word selection
-- Only process click if no text drag occurred (to preserve drag selection)