diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-02 06:40:29 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-02 06:40:29 -0500 |
| commit | 58281da28614386809eab60c9dcbb86082354f1b (patch) | |
| tree | fc53eba37cbad850f14b13a45cf5436a5f9acf00 /tui/layout.go | |
| parent | 33e59b1b318ea911d9a63cd78c6bc5eee0bb4109 (diff) | |
indicate when the user is scrolled up
Diffstat (limited to 'tui/layout.go')
| -rw-r--r-- | tui/layout.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tui/layout.go b/tui/layout.go index 480f3cc..2becbb8 100644 --- a/tui/layout.go +++ b/tui/layout.go @@ -66,6 +66,10 @@ func (s *ScrollState) Scroll(amnt int) { s.absolute += amnt } +func (s *ScrollState) Get() int { + return s.absolute +} + var layout struct { front map[string]*Box back map[string]*Box |
