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
HorizontalPager from 0.19 no more support dragEnabled #756
Comments
+1 here, also a little bit confused about this change. How can we now achieve this? modifier.scrollable(enabled=false) does not work for me... |
+1 |
+1 I'm really confused as to why they broke everything like this |
+1 Would be nice to have. I find workaround in my UI, but still a useful property. |
Always use Pager with disabled drag for screens like Onboarding. This update breaks expected behavior |
hello, is there any way to implement back the dragEnabled? |
+1 |
1 similar comment
+1 |
Same here, we found this attribute very useful ! |
so i did found out how to temporarily make this comment work #678 (comment)
and then according to the use case of it
and this is how I did use it
|
@RulerKun thank you for your comment but it sounds inconvenient for me right now but I found a working solution. I am using a container for my pages to intercept the drag events and it seems to work : HorizontalPager( |
oh nice, thanks for another solution |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
It's not stale Google bot, it's just ignored by maintainers 😂 |
Another use case which is common and could be considered is scrolling only upon a specific page. |
I don't think this will even be supported in the way you described. You probably just need to only pass pageCount of the filled out pages and add more pages once the user filled the current one |
There is a simple workaround available
Apply an appropriate modifier on Pager in order to disable the touch based scrolling. I will close this bug for now, please follow https://issuetracker.google.com/issues/201150093 where we will track the final decision on if we want to add scrollEnabled param on components or provide such modifier in the api |
I found a working solution. I am using userScrollEnabled and set it false like this:
|
Is this what was planned? Because I have not found any mention about removing dragEnabled.
For example, if im using HorizontalPager for images, which are able to zoom, i was disable dragging to previous / next page.
The text was updated successfully, but these errors were encountered: