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

Scrolling Issue in Bottom Sheet #4

Open
ashteligenz opened this issue Oct 11, 2019 · 7 comments
Open

Scrolling Issue in Bottom Sheet #4

ashteligenz opened this issue Oct 11, 2019 · 7 comments

Comments

@ashteligenz
Copy link

@AlexStefan BottomSheet is not scrolling with content. There is no event raised for scrolling.

@AlexStefan
Copy link
Contributor

@ashteligenz What are you trying to achieve? We've implemented this within a project where content is scrollable inside the BottomSheet.

@ashteligenz
Copy link
Author

@AlexStefan when i pass a view which already have a scroll view inside it then that is not scrolling, This problem is in Android only not in iOS it is working fine (Scrolling) in iOS.

@butonium
Copy link
Member

butonium commented Oct 14, 2019

@ashteligenz I will take a look and come with a solution. A repro case (sample project) from you can improve the response time. (in case the issue is related to the Xamarin.Forms)

@butonium
Copy link
Member

Meanwhile, if you want to disable the drag effect on BottomSheet and enable the scroll of the contentView you can use this workaround:

var bottomSheet = FindViewById<XBottomSheetView>(Resource.Id.BottomSheet); var behavior = (AnchoredBottomSheetBehavior) ReflectionHelper.GetFieldValue(bottomSheet, "behavior"); behavior.SetFieldValue("allowUserDragging", false);

@ashteligenz
Copy link
Author

ashteligenz commented Oct 15, 2019

@butonium Yeah sure, Here is my sample project you can check it:
BottomSheetSample.zip

@ashteligenz
Copy link
Author

Any updates?

@butonium
Copy link
Member

butonium commented Nov 1, 2019

Sorry for the delayed response, I am working on a new version that will have a draggable area in order to avoid the behaviour overlapping that is causing this issue. I hope that by the end of this week I will upload it.

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

No branches or pull requests

3 participants