Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct AxisRelativeDirection

sealed struct AxisRelativeDirection
Defines the direction of the physical motion that caused a PointerScroll event, relative to the direction of the AxisType in scroll event. For a PointerScroll event, the axisRelativeDirection specifies the movement direction of the entity causing the PointerScroll event. For example: - if a user’s fingers on a touchpad move down and this causes a VERTICAL scroll down event, the physical direction is ‘identical’ - if a user’s fingers on a touchpad move down and this causes a VERTICAL scroll up event (‘natural scrolling’), the physical direction is ‘inverted’.

Fields

Constants

IDENTICAL

AxisRelativeDirection = {"IDENTICAL"}
Relative direction is identical

INVERTED

AxisRelativeDirection = {"INVERTED"}
Relative direction is inverted
Last modified on October 29, 2026