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

Handle provided at the top of bottom sheet is not responsive #7

Closed
vipinfalke opened this issue Dec 10, 2018 · 7 comments
Closed

Handle provided at the top of bottom sheet is not responsive #7

vipinfalke opened this issue Dec 10, 2018 · 7 comments

Comments

@vipinfalke
Copy link

If tableview is scrolled (content offset is not equal to zero), user is not able to drag the bottom sheet down. User has to scroll the total tableview down (make content offset as zero) then only user can drag bottom sheet.
Is there any way we can drag bottom sheet up/down using the handle provided at top irrespective of the scrollview content offset.

let location = pan.location(in: panView)
location.y <= 50

@vipinfalke
Copy link
Author

vipinfalke commented Dec 10, 2018

It will be helpful if you provide an answer for this asap.
Thanks in advance

@vipinfalke
Copy link
Author

@OfTheWolf can you please look into this

@OfTheWolf
Copy link
Owner

@vipinfalke it was the intended behaviour in my case and to change this i need to rewrite the whole logic. if it is urgent i recommend you to handle pan gesture just for the top view(i.e. searchbar in my demo) and don't handle the pan gesture for tableview. so tableview will be just for scroll and top view for the moving up and down. It is really easy to implement. i hope it works for you.

And I will try to do your request when i have time.

@sreejithexp
Copy link

sreejithexp commented Dec 21, 2018

@vipinfalke

@OfTheWolf can you please look into this

If you find the solution please let me know. :)

@vi
Copy link

vi commented Dec 21, 2018

@vi

Maybe you meant "@vipinfalke"?

@cocodyrockstar
Copy link

cocodyrockstar commented Mar 22, 2019

@vipinfalke yyou can do that by resetting the tableview contentoffset when detecting touch on this view or
Capture d’écran 2019-03-22 à 07 05 24

@OfTheWolf
Copy link
Owner

@vipinfalke I updated the repo and now the view is responsive all the time whatever the scroll content offset is . See example project.

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

5 participants