diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-03-23 21:38:33 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-03-23 21:38:33 -0700 |
commit | a6dcfc5ac862637719b35c0fda137fdb4015c540 (patch) | |
tree | 84f991428c505a70ccd1d6d3a986b75639d1b33b /log_browser.lua | |
parent | 99faf61abbd90f3d5da40788adc43c2883beb470 (diff) | |
download | text.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 'log_browser.lua')
-rw-r--r-- | log_browser.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/log_browser.lua b/log_browser.lua index cd0d8fc..46d84c0 100644 --- a/log_browser.lua +++ b/log_browser.lua @@ -268,7 +268,7 @@ function log_browser.mouse_wheel_move(State, dx,dy) for i=1,math.floor(dy) do log_browser.up(State) end - else + elseif dy < 0 then for i=1,math.floor(-dy) do log_browser.down(State) end |