# IGvrScrollSettings Interface Reference

# IGvrScrollSettings

Interface to implement to override the global scroll settings in `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` for an object.

## Summary

Must be implmented by a component. It will override the scroll settings for the `GameObject` that the component is attached to.

Can use `https://developers.google.com/vr/reference/unity/class/GvrScrollSettings#classGvrScrollSettings` to override scroll settings for any existing UI type, or a custom UI component can implement this directly to override the scroll settings for the UI component's use case.

### Inheritance

Direct Known Subclasses:[GvrScrollSettings](https://developers.google.com/vr/reference/unity/class/GvrScrollSettings)

| ### Properties ||
|---|---|
| `https://developers.google.com/vr/reference/unity/interface/IGvrScrollSettings#interfaceIGvrScrollSettings_1a8cef06d043d5a8bc10ec0697134e1866` | `float` Gets the deceleration rate override value. |
| `https://developers.google.com/vr/reference/unity/interface/IGvrScrollSettings#interfaceIGvrScrollSettings_1a1a82c9279c10e4e73356c2157a9fdcd6` | `bool` Gets a value indicating whether the interia is enabled via its override value. |

## Properties

### DecelerationRateOverride

```c#
float DecelerationRateOverride
```
Gets the deceleration rate override value.

This value will override the deceleration rate in `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` for this object.

The deceleration rate is the speed reduction per second. A value of 0.5 halves the speed each second. The deceleration rate is only used when `inertia` is `true`.

Gets the default deceleration rate for the `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput`.

### InertiaOverride

```c#
bool InertiaOverride
```
Gets a value indicating whether the interia is enabled via its override value.

This value will override the Inertia property in `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` for this object.

Inertia means that scroll events will continue for a while after the user stops touching the touchpad. It gradually slows down according to the deceleration rate.

Gets whether the interia is enabled via its override value for the `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput`.