diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-12-01 22:17:43 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-12-01 22:17:43 -0800 |
commit | 52ffb40d790cc42ce46ff975bba890ff9f0b0009 (patch) | |
tree | d605a5ac754ff14e3ff97c03063f5cb6b1260513 /source_edit.lua | |
parent | 61336b491bc98ebe379af563ae990b7db011ea6a (diff) | |
parent | 8399c4270745be269e335b07106f1ba95c93334d (diff) | |
download | view.love-52ffb40d790cc42ce46ff975bba890ff9f0b0009.tar.gz |
Merge lines.love
Diffstat (limited to 'source_edit.lua')
-rw-r--r-- | source_edit.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source_edit.lua b/source_edit.lua index 6259ebe..9d37466 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -237,6 +237,7 @@ end function edit.mouse_press(State, x,y, mouse_button) if State.search_term then return end + State.mouse_down = mouse_button --? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) if mouse_press_consumed_by_any_button_handler(State, x,y, mouse_button) then -- press on a button and it returned 'true' to short-circuit @@ -301,6 +302,7 @@ end function edit.mouse_release(State, x,y, mouse_button) if State.search_term then return end --? print_and_log(('edit.mouse_release: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) + State.mouse_down = nil if State.lines.current_drawing then Drawing.mouse_release(State, x,y, mouse_button) schedule_save(State) |