Skip to main content

DismissibleUpdateEvent

Event payload emitted while a dismiss gesture is in progress.

Inherits: Event

Properties

  • direction - Direction of the current drag gesture.
  • previous_reached - Whether threshold was reached on the previous update event.
  • progress - Drag progress from 0.0 to 1.0 relative to dismissal threshold.
  • reached - Whether the dismiss threshold is currently reached.

Properties

directioninstance-attribute

direction: DismissDirection

Direction of the current drag gesture.

previous_reachedinstance-attribute

previous_reached: bool

Whether threshold was reached on the previous update event.

progressinstance-attribute

progress: float

Drag progress from 0.0 to 1.0 relative to dismissal threshold.

reachedinstance-attribute

reached: bool

Whether the dismiss threshold is currently reached.