Merge template-live-editor-mobile
This commit is contained in:
commit
0862dd2f72
1
edit.lua
1
edit.lua
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue