about summary refs log tree commit diff stats
path: root/run.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-03-23 21:38:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-03-23 21:38:33 -0700
commita6dcfc5ac862637719b35c0fda137fdb4015c540 (patch)
tree84f991428c505a70ccd1d6d3a986b75639d1b33b /run.lua
parent99faf61abbd90f3d5da40788adc43c2883beb470 (diff)
downloadlines.love-a6dcfc5ac862637719b35c0fda137fdb4015c540.tar.gz
some minor cleanup
I can't see the mouse wheel ever setting dx, but it's more obvious now
that the editor doesn't support panning left/right.
Diffstat (limited to 'run.lua')
-rw-r--r--run.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/run.lua b/run.lua
index ae78d9b..17477ea 100644
--- a/run.lua
+++ b/run.lua
@@ -163,9 +163,9 @@ function run.mouse_release(x,y, mouse_button)
   return edit.mouse_release(Editor_state, x,y, mouse_button)
 end
 
-function run.mouse_wheel_move(x,y)
+function run.mouse_wheel_move(dx,dy)
   Cursor_time = 0  -- ensure cursor is visible immediately after it moves
-  return edit.mouse_wheel_move(Editor_state, x,y)
+  return edit.mouse_wheel_move(Editor_state, dx,dy)
 end
 
 function run.text_input(t)