Skip to content

Commit

Permalink
update comment code
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed May 2, 2024
1 parent 093a68f commit 993f058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/page/components/items_scroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (s *Scroll[T]) fetchScrollData(isScrollUp bool, window app.WindowNavigator)

s.mu.Lock()
tempSize := s.pageSize
//Scroll up and down without load more
// Scroll up and down without load more
if s.data != nil {
temStartIdx := s.data.idxStart
if isScrollUp {
Expand Down Expand Up @@ -161,7 +161,7 @@ func (s *Scroll[T]) fetchScrollData(isScrollUp bool, window app.WindowNavigator)

}

// handle when need to load more items.
// handle when there is a need to load more items.
if s.data == nil {
s.data = &dataList[T]{
idxEnd: -1,
Expand Down

0 comments on commit 993f058

Please sign in to comment.