stefanceriu / SCPageViewController

Just like UIPageViewController but better.. :)
MIT License
352 stars 70 forks source link

Any possible way to remove deceleration delay when paging? #35

Closed joenot443 closed 6 years ago

joenot443 commented 8 years ago

Essentially, I've noticed that when navigating through pages, it takes about 0.3s for the page to 'settle' and reach its final destination. It eases the edge of the page into place slightly slower than I'd like, I'd like to reduce or remove this delay if possible.

I can attach a GIF of what I mean if needed, hopefully I've explained myself correctly though.

Thanks!

stefanceriu commented 8 years ago

Hi Joe,

Unfortunately, as the component is based on an UIScrollView, the deceleration rate is restricted to UIScrollViewDecelerationRateNormal or UIScrollViewDecelerationRateFast and it's already set to use fast by default.

The only workaround I can think of is to observe scroll events and manually change the content offset once a threshold has been reached.