diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index af5b0ce499af97035632ebea4ba1b9c155196659..7f412d38e623f47cebdee50c2cd9251dcd6bbe3c 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -7719,6 +7719,7 @@ static void canvas_createobj(t_canvas *x, t_symbol *s, int argc, t_atom *argv)
             // Set the dirty flag since we've changed the rtext content...
             canvas_dirty(x, 1);
             x->gl_editor->e_textdirty = 1;
+            x->gl_editor->e_onmotion = MA_NONE; // undo any mouse actions
             if (s == gensym("createobj"))
                 glist_deselect(x, y); // instantiate
             break;