some debug prints

I'm noticing a bug where I click on a node sometimes and the cursor
doesn't appear. It's in driver.love, but I can't exclude it might be in
this fork as well. Might as well spread debug prints everywhere I might
catch this.
This commit is contained in:
Kartik K. Agaram 2023-10-22 11:42:09 -07:00
parent cba7183a09
commit 831bd0eb91
1 changed files with 2 additions and 0 deletions

View File

@ -8,7 +8,9 @@ on.mouse_press = function(x,y, mouse_button)
if node then
-- position cursor in node
Cursor_node = node
print('within node')
edit.mouse_press(node.editor, x,y, mouse_button)
print('cursor at', node.editor.cursor_x, node.editor.cursor_y)
return
end
-- pan surface