about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--drawing.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/drawing.lua b/drawing.lua
index 34201e7..6b5b6c2 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -220,7 +220,7 @@ function Drawing.mouse_pressed(drawing, x,y, button)
   elseif Current_drawing_mode == 'move' then
     -- all the action is in mouse_released
   elseif Current_drawing_mode == 'name' then
-    -- all the action is in mouse_released
+    -- nothing
   else
     print(Current_drawing_mode)
     assert(false)
@@ -334,8 +334,10 @@ function Drawing.mouse_released(x,y, button)
           Lines.current.pending.end_angle = geom.angle_with_hint(center.x,center.y, mx,my, Lines.current.pending.end_angle)
           table.insert(Lines.current.shapes, Lines.current.pending)
         end
+      elseif Lines.current.pending.mode == 'move' then
+        -- drop it
       elseif Lines.current.pending.mode == 'name' then
-        -- all the action is in mouse_released
+        -- drop it
       else
         print(Lines.current.pending.mode)
         assert(false)