We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class BottomSheetNestedScrollInterceptor : NestedScrollConnection { private var arrivedBoundarySource: NestedScrollSource? = null override fun onPreScroll( available: Offset, source: NestedScrollSource ): Offset { // Reset the state variable if (source == NestedScrollSource.Drag && arrivedBoundarySource == NestedScrollSource.Fling) { arrivedBoundarySource = null } return super.onPreScroll(available, source) } override fun onPostScroll( consumed: Offset, available: Offset, source: NestedScrollSource ): Offset { // The sub-layout can't consume completely, // which means that the boundary has been reached. if (arrivedBoundarySource == null && abs(available.y) > 0) { arrivedBoundarySource = source } // Decide whether to consume according to the sub-layout // consumption when reaching the boundary. if (arrivedBoundarySource == NestedScrollSource.Fling) { return available } return Offset.Zero } override suspend fun onPostFling( consumed: Velocity, available: Velocity ): Velocity { arrivedBoundarySource = null return super.onPostFling(consumed, available) } } @Composable fun rememberBottomSheetNestedScrollInterceptor(): BottomSheetNestedScrollInterceptor { return remember { BottomSheetNestedScrollInterceptor() } }
개조 및 적용
2차 MVP 이후
No response
The text was updated successfully, but these errors were encountered:
Merge pull request #141 from WithPeace/feat/#112-filter_modal_nesteds…
4fae7d9
…croll_적용 Feat/#112 filter modal nestedscroll 적용
rhkrwngud445
Successfully merging a pull request may close this issue.
기능 설명
개조 및 적용
개발 일정
2차 MVP 이후
자식 이슈
No response
부가 설명
No response
The text was updated successfully, but these errors were encountered: