subinspathilettu / SJSegmentedViewController

MIT License
334 stars 126 forks source link

Strange scrolling behaviour when dragging from tableviews #21

Closed nemwiper closed 7 years ago

nemwiper commented 7 years ago

Hi everybody, I see a strange behaviour when you scroll up. To replicate this problem you have, in the example app, to:

If you scroll with the "inertia" you can observe that the scrollingview doesn't acquire the normal "velocity", but it stops instantaneously. This effect makes the navigation in the section a little weird, you can sense that something is wrong, but it's difficult to figure it out what!!

subinspathilettu commented 7 years ago

Hi @nemwiper,

We are not able to reproduce this scenario. Could you please provide a video for this scenario?

nemwiper commented 7 years ago

Hi @subinspathilettu, thanks for the quick response!!!

This is a video of the issue, as you can see, when scrolling up dragging from the tableview (when it reaches the top element), the movement of the scrollview stops as you release the mouse, instead of continue to move upward.

a

subinspathilettu commented 7 years ago

Ohh.. got it.. Thanks @nemwiper

After reaches the top element, we are using UIScrollView scroll changes to update the view. The deceleration rate for UITableView and UIScrollView is different. So that it suddenly stops after releasing the touch/mouse. I will look into this issue and provide an update.

nemwiper commented 7 years ago

@subinspathilettu, thankyou very much! ;)

nemwiper commented 7 years ago

Hi @subinspathilettu, another small issue: when one drags up starting from the table view it's all fine, but when the dragging starts from the header or from the segment view, the scroll view stops scrolling once the fragment view reaches the top, and the "movement" will not propagate to the tableview! ;) With this two issues resolved I think that this library will be perfect! :)

a

nemwiper commented 7 years ago

Why this issue has been closed? It's still present in the last version! :(

wongzigii commented 6 years ago

Any update on this issue?