FancyScrollView icon indicating copy to clipboard operation
FancyScrollView copied to clipboard

How to use mouse to scroll?

Open longvannguyendx opened this issue 5 years ago • 10 comments

Hi,

As the title. How to use the middle mouse to scroll?

Thanks.

longvannguyendx avatar Dec 09 '19 09:12 longvannguyendx

@longvannguyendx Hi.

I added mouse wheel input support to Scroller : https://github.com/setchi/FancyScrollView/commit/bf3fd361441fa98434b83dfc08adbafd268c6242

Try the newest version. Thanks.

setchi avatar Dec 10 '19 10:12 setchi

Hi, I tested and find out one issue: When you scroll to end and you will can not scroll anymore. Thanks.

longvannguyendx avatar Dec 11 '19 03:12 longvannguyendx

@longvannguyendx Would you mind provide a small example project? Or can you explain with gif?

setchi avatar Dec 11 '19 04:12 setchi

Hi, This issue is occur when I set Moment Type of Scroller is Clamped. Note: I tested in your example. BTW, I can not set Scroll sensitivity , It's calculate automatically and hard to scroll when we have big data on list. Thanks.

longvannguyendx avatar Dec 13 '19 09:12 longvannguyendx

@longvannguyendx Thank you for the report. I will investigate it. Is it 07_ScrollRect ?

setchi avatar Dec 13 '19 09:12 setchi

Hi, Yes, It's 07_ScrollRect. Let me know if you need more information. Thanks.

longvannguyendx avatar Dec 13 '19 09:12 longvannguyendx

@longvannguyendx

Fixed: https://github.com/setchi/FancyScrollView/commit/ac830a74f062e189f96694938f610666030a70e8

When you scroll to end and you will can not scroll anymore.

setchi avatar Dec 13 '19 10:12 setchi

Hi @setchi I tested on 07_ScrollRect and i found 2 issues: 1. When we click on top / bottom of scrollbar then I can not see scrollbar anymore. You can see the video here: https://drive.google.com/file/d/1v4raiZrPDe9H22aDjLAmKaVSfF8byDRe/view.

2.Scroll sensitivity is calculated automatically when we start, and hard to scroll when we have big data on list. 
In order to fix this. I try to add some code in onScroll of Scroller and It work ok.
You can consider use this code if you want. Please see file attachment for more details.

OnScroll

Thanks.

longvannguyendx avatar Dec 25 '19 10:12 longvannguyendx

@longvannguyendx Thank you for the your report! Please try this and make sure the issue is resolved.

Screen Shot 2019-12-27 at 13 58 57

setchi avatar Dec 27 '19 05:12 setchi

@longvannguyendx I think that the problem of slow scrolling with the mouse wheel also occurs with uGUI standard ScrollRect. I will investigate the Unity specification and consider a formal fix.

setchi avatar Dec 27 '19 05:12 setchi