# GvrScrollSettings Class Reference

# GvrScrollSettings

Used to override the global scroll settings in `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` for the `GameObject` that this script is attached to.

## Summary

### Inheritance

Inherits from: MonoBehaviour, [IGvrScrollSettings](https://developers.google.com/vr/reference/unity/interface/IGvrScrollSettings)

| ### Public attributes ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrScrollSettings#classGvrScrollSettings_1ad61d799f3999c9773eb6c8629e6b4f94 = 0.05f` | `float` The deceleration rate is the speed reduction per second. |
| `https://developers.google.com/vr/reference/unity/class/GvrScrollSettings#classGvrScrollSettings_1a74c227354067e72ac7d1735d872722c3 = true` | `bool` Override the `Inertia` property in `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` for this object. |

| ### Properties ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrScrollSettings#classGvrScrollSettings_1ac3ad56472483574c90ecebc6a57013b9` | `float` Gets the deceleration rate override value. |
| `https://developers.google.com/vr/reference/unity/class/GvrScrollSettings#classGvrScrollSettings_1aa9b11ab9317f8980dce99d7157f5e5b2` | `bool` Gets a value indicating whether the overridden value for `interia` is enabled. |

## Public attributes

### decelerationRateOverride

```c#
float decelerationRateOverride = 0.05f
```
The deceleration rate is the speed reduction per second.

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

### inertiaOverride

```c#
bool inertiaOverride = true
```
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 `decelerationRate`.

## 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 deceleration rate override value for the `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput`.

### InertiaOverride

```c#
bool InertiaOverride
```
Gets a value indicating whether the overridden value for `interia` is enabled.

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 `decelerationRate`.

Gets the overridden value for whether to use `interia` for the `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput`.