Skip to content

Commit ba0ddc6

Browse files
committed
Fix gradebook bug where direction would never be down
1 parent 9466cc0 commit ba0ddc6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

SakaiClientiOS/Controllers/Gradebook/GradebookTableManager.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ class GradebookTableManager:
8585
override func scrollViewDidScroll(_ scrollView: UIScrollView) {
8686
var direction: Direction = .up
8787

88-
if scrollView.contentOffset.y == lastContentOffset {
89-
hideHeaderCell()
90-
return
88+
if scrollView.contentOffset.y > lastContentOffset {
89+
direction = .down
9190
}
9291
lastContentOffset = scrollView.contentOffset.y
9392

0 commit comments

Comments
 (0)