x


How can I set the mousewheel scroll speed in a ScrollView?

I have a ScrollView that's pretty long, and I want the user to be able to use the mouse wheel to scroll through it. The problem is, the wheel only scrolls about 25 pixels at a time and I need it to scroll a lot more than that.

Is there any way to change the mousewheel scroll speed for a ScrollView?

Barring that...

Is there any way to turn off mousewheel scrolling altogether inside a ScrollView? (then I can use my own scrolling code to adjust the position)

more ▼

asked Mar 11 '10 at 11:18 PM

Ony gravatar image

Ony
918 29 37 48

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I found this to work for me, with some tweaking. At least for slowing it down.

scrollPosition= Vector2.Lerp(scrollPosition,GUILayout.BeginScrollView(scrollPosition),.2);
more ▼

answered May 06 '11 at 05:40 AM

Boco gravatar image

Boco
33 1 1 1

(comments are locked)
10|3000 characters needed characters left

Could you detect when focus is in your ScrollView and muck with the Sensitivity on the 'Mouse ScrollWheel' input profile?

more ▼

answered Aug 31 '10 at 07:06 AM

DaveA gravatar image

DaveA
26.8k 153 171 257

This was from months ago and I ended up using a different method altogether to do what I needed so I'm not even sure if your answer would work or not, but thanks for trying.

Sep 01 '10 at 12:10 AM Ony

Could you post your answer here, for posterity? I'm sure others may run into this too (it interested me anyway)

Sep 01 '10 at 07:26 PM DaveA
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3808
x76
x65
x10

asked: Mar 11 '10 at 11:18 PM

Seen: 2252 times

Last Updated: Mar 11 '10 at 11:18 PM