IXRefreshableScrollView icon indicating copy to clipboard operation
IXRefreshableScrollView copied to clipboard

Elasticity too strong

Open eonist opened this issue 6 years ago • 3 comments

It takes too much effort to pull to refresh.

Is it possible to adjust the elasticity to be more loose and easier to pull to refresh. Sort of like iOS?

Thanks

eonist avatar Jul 20 '19 15:07 eonist

Also, do you know any similar projects?

eonist avatar Jul 20 '19 15:07 eonist

Yes, I think it's possible to adjust the elasticity, but it requires you to override scrollWheel(with:) method and handle elastic scrolling completely.

It's not an easy task though, but I'll see what I can do, maybe as a new feature in future build.


There are some similar projects:

Also, it's worth checking UIKit implementations. Scroll view API is quite similar on both platform and you can get it working on macOS with little modification.

IsaacXen avatar Jul 21 '19 03:07 IsaacXen

@IsaacXen Thanks for your insight!

I think overriding the scroll wheel and doing the scrolling calculations your self could work. I'll give it a go. 👍

eonist avatar Jul 21 '19 09:07 eonist