Skip to content

Commit

Permalink
KKUMI-107 [FEAT] #87 - 화면 최상단일 때만 SwipeRefresh 활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
jung0115 committed Aug 23, 2024
1 parent 8eeea8c commit 7763cd1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(R.layout.fragment_home),
val scroll = v.getChildAt(v.childCount - 1)
val diff = scroll.bottom - (v.height + v.scrollY)

binding.swipeRefreshLayout.isEnabled = !v.canScrollVertically(-1)

// includeListLoading이 보이기 시작하는 시점 확인
val loadingViewTop = binding.includeListLoading.top

Expand Down

0 comments on commit 7763cd1

Please sign in to comment.