This commit is contained in:
Kartik K. Agaram 2022-05-16 22:13:38 -07:00
parent 89b3c7a64f
commit 399fed42d8
1 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ end
function love.textinput(t)
if love.mouse.isDown('1') then return end
if in_drawing() then return end
if mouse_in_drawing() then return end
local byteoffset
if cursor_pos > 1 then
byteoffset = utf8.offset(lines[cursor_line], cursor_pos-1)
@ -749,7 +749,7 @@ function nearest_cursor_pos(line, x, hint)
return right
end
function in_drawing()
function mouse_in_drawing()
local x, y = love.mouse.getX(), love.mouse.getY()
for _,drawing in ipairs(lines) do
if type(drawing) == 'table' then