fix a variable name

This commit is contained in:
Kartik K. Agaram 2022-07-11 22:01:30 -07:00
parent 6c4483976e
commit d2d54db1f9
1 changed files with 3 additions and 3 deletions

View File

@ -363,20 +363,20 @@ function App.mousepressed(x,y, mouse_button)
Lines.current_drawing_index = line_index
Lines.current_drawing = line
Drawing.before = snapshot(line_index)
Drawing.mouse_pressed(line, x,y, button)
Drawing.mouse_pressed(line, x,y, mouse_button)
break
end
end
end
end
function App.mousereleased(x,y, button)
function App.mousereleased(x,y, mouse_button)
if Search_term then return end
--? print('release')
-- ensure cursor is visible immediately after it moves
Cursor_time = 0
if Lines.current_drawing then
Drawing.mouse_released(x,y, button)
Drawing.mouse_released(x,y, mouse_button)
schedule_save()
if Drawing.before then
record_undo_event({before=Drawing.before, after=snapshot(Lines.current_drawing_index)})