From 919d4288bc630b726a015bec82737ee6cde9712c Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Mon, 15 Jul 2024 00:12:07 -0500 Subject: [PATCH] feat(game): Make horizontal mouse scrolls move by 2 --- internal/game/game.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/game/game.go b/internal/game/game.go index a182fe4..81ba7a6 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -158,11 +158,11 @@ func (g *Game) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.MouseButtonWheelUp: g.y = max(g.y-1, 0) case tea.MouseButtonWheelLeft: - g.x = max(g.x-1, 0) + g.x = max(g.x-2, 0) case tea.MouseButtonWheelDown: g.y = min(g.y+1, g.BoardH()-g.viewH) case tea.MouseButtonWheelRight: - g.x = min(g.x+1, g.BoardW()-g.viewW) + g.x = min(g.x+2, g.BoardW()-g.viewW) } } case tea.KeyMsg: