Skip to main content

ScrollEvent

The pointer issued a scroll event.

Inherits: Event

Properties

  • global_position - The coordinate of the position of the pointer, in logical pixels in the global coordinate space.
  • local_position - The coordinate of the position of the pointer, in logical pixels in the local coordinate space.
  • scroll_delta - The amount to scroll, in logical pixels.

Properties

global_positionclass-attributeinstance-attribute

global_position: Offset = field(metadata={'data_field': 'g'})

The coordinate of the position of the pointer, in logical pixels in the global coordinate space.

local_positionclass-attributeinstance-attribute

local_position: Offset = field(metadata={'data_field': 'l'})

The coordinate of the position of the pointer, in logical pixels in the local coordinate space.

scroll_deltaclass-attributeinstance-attribute

scroll_delta: Offset = field(metadata={'data_field': 'sd'})

The amount to scroll, in logical pixels.