From ce4807a9a21b7de39aa2582c832f22104429b898 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 6 Mar 2024 16:25:08 -0500 Subject: [PATCH] feat: update bubbletea & term/input --- go.mod | 4 ++-- go.sum | 4 ++-- viewport/viewport.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 54dc8a6..8788d67 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/MakeNowJust/heredoc v1.0.0 github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d github.com/atotto/clipboard v0.1.4 - github.com/charmbracelet/bubbletea v0.25.0 + github.com/charmbracelet/bubbletea v0.25.1-0.20240306212323-3df8b37dba50 github.com/charmbracelet/harmonica v0.2.0 github.com/charmbracelet/lipgloss v0.10.0 github.com/dustin/go-humanize v1.0.1 @@ -22,7 +22,7 @@ require ( require ( github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect - github.com/charmbracelet/x/exp/term v0.0.0-20240305175158-9d6e16c3e596 // indirect + github.com/charmbracelet/x/exp/term v0.0.0-20240306210724-a9f86411eab9 // indirect github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/mattn/go-isatty v0.0.18 // indirect diff --git a/go.sum b/go.sum index d13640f..c453cfa 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/charmbracelet/harmonica v0.2.0 h1:8NxJWRWg/bzKqqEaaeFNipOu77YR5t8aSwG github.com/charmbracelet/harmonica v0.2.0/go.mod h1:KSri/1RMQOZLbw7AHqgcBycp8pgJnQMYYT8QZRqZ1Ao= github.com/charmbracelet/lipgloss v0.10.0 h1:KWeXFSexGcfahHX+54URiZGkBFazf70JNMtwg/AFW3s= github.com/charmbracelet/lipgloss v0.10.0/go.mod h1:Wig9DSfvANsxqkRsqj6x87irdy123SR4dOXlKa91ciE= -github.com/charmbracelet/x/exp/term v0.0.0-20240305175158-9d6e16c3e596 h1:6bbClHCu81M0W2EV2NgZeW+5V5GzCtQQq3QnXQN2Icc= -github.com/charmbracelet/x/exp/term v0.0.0-20240305175158-9d6e16c3e596/go.mod h1:OZzXGbJjLKyLwUBF2DXVZkfdTLsBPCaVr4mbjzgJHt8= +github.com/charmbracelet/x/exp/term v0.0.0-20240306210724-a9f86411eab9 h1:dfNswbUbrXNuJ7R5sCd8WM+txak85lMVTlGChe3WwHY= +github.com/charmbracelet/x/exp/term v0.0.0-20240306210724-a9f86411eab9/go.mod h1:OZzXGbJjLKyLwUBF2DXVZkfdTLsBPCaVr4mbjzgJHt8= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= diff --git a/viewport/viewport.go b/viewport/viewport.go index 0a5a73a..44cbf16 100644 --- a/viewport/viewport.go +++ b/viewport/viewport.go @@ -331,8 +331,8 @@ func (m Model) updateAsModel(msg tea.Msg) (Model, tea.Cmd) { } } - case tea.MouseMsg: - if !m.MouseWheelEnabled || msg.Action != tea.MouseActionPress { + case tea.MouseDownMsg: + if !m.MouseWheelEnabled { break } switch msg.Button {