7c3fa24e84cd469617615536ab5b0f7a940bdd8a
- Author
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Committer
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Date
Message
fix(ui): viewport: rename HalfViewDown/Up to HalfPageDown/Up
Diff
1diff --git a/pkg/ui/components/viewport/viewport.go b/pkg/ui/components/viewport/viewport.go
2index ccbd2318488ecefb140a0a8838ae01b273e8ee46..95bd06bdb8beca22e9f6abda9efba40d4cfbc5b6 100644
3--- a/pkg/ui/components/viewport/viewport.go
4+++ b/pkg/ui/components/viewport/viewport.go
5@@ -75,12 +75,12 @@ func (v *Viewport) GotoBottom() {
6
7 // HalfViewDown moves the viewport down by half the viewport height.
8 func (v *Viewport) HalfViewDown() {
9- v.Model.HalfViewDown()
10+ v.Model.HalfPageDown()
11 }
12
13 // HalfViewUp moves the viewport up by half the viewport height.
14 func (v *Viewport) HalfViewUp() {
15- v.Model.HalfViewUp()
16+ v.Model.HalfPageUp()
17 }
18
19 // ScrollPercent returns the viewport's scroll percentage.