Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use mouse to scroll? #37

Open
longvannguyendx opened this issue Dec 9, 2019 · 10 comments
Open

How to use mouse to scroll? #37

longvannguyendx opened this issue Dec 9, 2019 · 10 comments

Comments

@longvannguyendx
Copy link

longvannguyendx commented Dec 9, 2019

Hi,

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

Thanks.

@setchi
Copy link
Owner

setchi commented Dec 10, 2019

@longvannguyendx
Hi.

I added mouse wheel input support to Scroller : bf3fd36

Try the newest version.
Thanks.

@longvannguyendx
Copy link
Author

longvannguyendx commented Dec 11, 2019

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

@setchi
Copy link
Owner

setchi commented Dec 11, 2019

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

@longvannguyendx
Copy link
Author

longvannguyendx commented Dec 13, 2019

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.

@setchi
Copy link
Owner

setchi commented Dec 13, 2019

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

@longvannguyendx
Copy link
Author

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

@setchi
Copy link
Owner

setchi commented Dec 13, 2019

@longvannguyendx

Fixed: ac830a7

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

@longvannguyendx
Copy link
Author

longvannguyendx commented Dec 25, 2019

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.

@setchi
Copy link
Owner

setchi commented Dec 27, 2019

@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
Copy link
Owner

setchi commented Dec 27, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants