How to use Mouse Scroll Wheel with ScrollRect?

Is it currently possible to (properly) scroll a ScrollRect with the mouse wheel at the moment?

I’m able to do it, sort of, by writing my own script that modifies either the content’s anchoredPosition, or the ScrollRect’s normalized position properties. But, doing it this way, I’m not able to take advantage of the smooth scrolling that click-dragging has, or the inertia. Is there some other way I should be doing this? If there isn’t yet, will that be added in the future? It seems like a strange oversight to me to have scroll views that don’t respond to the mouse wheel.

On a different but slightly related note, ScrollRect’s inertia property is mispelled, as ‘intertia’. The editor shows the right wording, it’s just the property used in scripting that is mispelled.

Mouse wheel support for the ScrollRect is something we’ll be adding in one of the coming betas.

Also thanks for reporting the typo.

1 Like

Sorry for necro a bit:

Is it possible to have some kind of setting to have inertia with the mouse scroll also? It would be nice to have same user experience is it scrolling on touchscreen, dragging and also with mouse scroll. I understand that scrolling text is kind of OK to have same as browsers, but having the flexibility to have inertia for it also would be really nice.

This is not a priority for us, since it’s inconsistent with common standards. You’ll have to grab the source and make your own modifications to get this behaviour.

Roger that. Gotta dig into it :slight_smile: