Merge template-live-editor-mobile

This commit is contained in:
Kartik K. Agaram 2023-12-01 22:26:00 -08:00
commit 0862dd2f72
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ function edit.mouse_release(State, x,y, mouse_button)
if State.search_term then return end if State.search_term then return end
State.mouse_down = nil State.mouse_down = nil
--? print_and_log(('edit.mouse_release(%d,%d): cursor at %d,%d'):format(x,y, State.cursor1.line, State.cursor1.pos)) --? print_and_log(('edit.mouse_release(%d,%d): cursor at %d,%d'):format(x,y, State.cursor1.line, State.cursor1.pos))
State.mouse_down = nil
if y < State.top then if y < State.top then
State.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos} State.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos}
edit.clean_up_mouse_press(State) edit.clean_up_mouse_press(State)