52inc / Pulley

A library to imitate the iOS 10 Maps UI.
https://cocoapods.org/pods/Pulley
MIT License
2.02k stars 265 forks source link

[BUG] There is a 20 pixel top inset for the PulleyPassThroughScrollView which doesn't accept user action #416

Closed ngerdzhikov closed 3 years ago

ngerdzhikov commented 3 years ago

Describe the bug I noticed a bug that is also reproducable while testing on the Demo app of Pulley. On the top of the drawer content view in panel mode there is a 20 pixel untappable space. If I inspect the view it's actually +20 pixels of height more than the one I return in the partialRevealDrawerHeight for example. This I think happens because of the bounceOverflowMargin variable that is added to the frame height. It's not allowed in panel mode so maybe it's good to check if the view is in panel mode before adding it to the frame.

To Reproduce

Expected behavior DrawerContentView to be the actual height that is return by the delegate.

Screenshots or Recordings

Screenshot 2021-07-09 at 12 56 24

Pulley (please complete the following information):

Xcode (please complete the following information):

iOS Devices (please complete the following information):

ngerdzhikov commented 3 years ago

I found out that this change on line 1277 fixes the visual issue. I don't know if it'll break any other functionality

Screenshot 2021-07-09 at 13 16 17

Result:

Screenshot 2021-07-09 at 13 15 57
ulmentflam commented 3 years ago

@gerdjikov17 Your solution should work as .pannel and .compact modes don't require the bounce overflow margin. I would be happy to merge your PR if you would like to submit your change?

ulmentflam commented 3 years ago

Thank you, @gerdjikov17! Your PR has been merged into the main branch!