Class ScrollTextAreaDragStartedEvent
Event published by a ScrollTextArea when the user begins a drag-scroll gesture (pointer down followed by pointer move). Consumers can use this to pause auto-scroll-to-bottom behavior while the user is manually dragging.
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
public sealed class ScrollTextAreaDragStartedEvent : ScyllaEvent
Constructors
ScrollTextAreaDragStartedEvent(ScrollTextArea, float)
Initializes a new ScrollTextAreaDragStartedEvent recording the scroll area and its scroll position at the start of the drag.
Declaration
public ScrollTextAreaDragStartedEvent(ScrollTextArea scrollTextArea, float scrollPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollTextArea | scrollTextArea | The ScrollTextArea where the drag started. |
| float | scrollPosition | The scroll position (in pixels) at drag start. |
Properties
ScrollPosition
Gets the pixel scroll position at the moment the drag gesture began. Measured from the top of the content area (0 = fully scrolled to top).
Declaration
public float ScrollPosition { get; }
Property Value
| Type | Description |
|---|---|
| float |
ScrollTextArea
Gets the ScrollTextArea on which the drag started.
Declaration
public ScrollTextArea ScrollTextArea { get; }
Property Value
| Type | Description |
|---|---|
| ScrollTextArea |