MCPcopy
hub / github.com/g3n/engine / ScrollDown

Method ScrollDown

gui/itemscroller.go:190–198  ·  view source on GitHub ↗

ScrollDown scrolls the list down one item if possible

()

Source from the content-addressed store, hash-verified

188
189// ScrollDown scrolls the list down one item if possible
190func (s *ItemScroller) ScrollDown() {
191
192 max := s.maxFirst()
193 if s.first >= max {
194 return
195 }
196 s.first++
197 s.recalc()
198}
199
200// ScrollUp scrolls the list up one item if possible
201func (s *ItemScroller) ScrollUp() {

Callers 2

onScrollMethod · 0.95
selNextMethod · 0.80

Calls 2

maxFirstMethod · 0.95
recalcMethod · 0.95

Tested by

no test coverage detected