AccessibilityScrollDirection
Describes the direction of a scrolling action.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
public enum AccessibilityScrollDirection : byte
Remarks
The values in this enumeration are used by the _scrolled event, which is sent when a screen reader user performs a scrolling action.
Each direction describes how the visible region of the content should move: AccessibilityScrollDirection.Up and AccessibilityScrollDirection.Left should move the visible region toward the start of the content, revealing the content above or to the left of it, and AccessibilityScrollDirection.Down and AccessibilityScrollDirection.Right should move it toward the end. AccessibilityScrollDirection.Forward and AccessibilityScrollDirection.Backward should scroll to the next and previous portion of the content along its main scrolling axis.
Additional Resources:
Fields
Value | Description |
|---|---|
| Backward | The user wants to move the visible region to the previous portion of the content, along its main scrolling axis. |
| Down | The user wants to move the visible region toward the bottom of the content, revealing the content below. |
| Forward | The user wants to move the visible region to the next portion of the content, along its main scrolling axis. |
| Left | The user wants to move the visible region toward the left edge of the content, revealing the content to the left. |
| Right | The user wants to move the visible region toward the right edge of the content, revealing the content to the right. |
| Unknown | The direction of the scrolling action is unknown. |
| Up | The user wants to move the visible region toward the top of the content, revealing the content above. |