# ScrollViewerImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/trait-scrollviewerimpl/

**trait** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
trait ScrollViewerImpl: ContentControlImpl + $crate::Upcast<ScrollViewer>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/scroll_viewer.rs#L55)

## Members

- [`on_scroll_changed`](#function-on_scroll_changed)

<a id="function-on_scroll_changed"></a>

### on_scroll_changed

```rust
fn on_scroll_changed(this: &Self, e: &ScrollChangedEventArgs)
```

Called when a change in scrolling state is detected, such as a
change in scroll position, extent, or viewport size.

If you override this method, call the parent implementation to
ensure that the `ScrollChanged` event is raised.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/scroll_viewer.rs#L55)

## Trait implementations

- [`ScrollViewerImpl`](/docs/0.5.0/api/ferroui-controls/trait-scrollviewerimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
