Module freya::prelude::pointer

source ·

Structs§

Enums§

  • Describes a button of a mouse controller.
  • The type of device that triggered a Pointer event.

Functions§

  • The globalpointerup event fires when the user releases the point anywhere in the app.
  • The pointerdown event fires when the user clicks/starts touching an element.
  • The pointerenter event fires when the user starts hovering/touching an element.
  • The pointerleave event fires when the user stops hovering/touching an element.
  • The pointermove event fires when the user moves the cursor or touches over an element. Unlike onpointerenter, this fires even if the user was already hovering over the element.
  • The pointerup event fires when the user releases their mouse button or stops touching the element.