Skip to content
New issue

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

how to stop one fragment in navHost not to implement swipe Please let me know is this possible? I have map fragment when change fragment to swipeable my map scrolling stops #8

Closed
arsalanImtiaz455 opened this issue Dec 6, 2022 · 4 comments
Assignees
Labels
feature A new feature or improvement

Comments

@arsalanImtiaz455
Copy link

Please consider making a Pull Request if you are capable of doing so.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@arsalanImtiaz455 arsalanImtiaz455 added the feature A new feature or improvement label Dec 6, 2022
@arsalanImtiaz455 arsalanImtiaz455 changed the title how to stop one fragment in navHost not to implement swipe Please let me know is this possible how to stop one fragment in navHost not to implement swipe Please let me know is this possible? I have map fragment when change fragment to swipeable my map scrolling stops Dec 6, 2022
@massivemadness
Copy link
Owner

Hi @arsalanImtiaz455, it's possible via SwipeController.

// Fragment.kt
findSwipeController().setUserInputEnabled(false)

@massivemadness
Copy link
Owner

If you still having scrolling issues, this might be the scrolling issue in ViewPager2, follow this example to solve it.

@arsalanImtiaz455
Copy link
Author

thanks I'll let you know if need your further help

@arsalanImtiaz455
Copy link
Author

Thanks @massivemadness your library helped me a lot and i really appreciate your quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants