pixi-wheels

SettleMode

pixi-wheels


pixi-wheels / index / SettleMode

Type Alias: SettleMode

type SettleMode = "none" | "center" | "bounce";

Defined in: config/types.ts:148

What the wheel does once the pointer has reached the landing angle.

  • 'none': stays exactly where it landed.
  • 'center': after delayMs, glides to the middle of the section over durationMs. The “land anywhere, then present the prize centred” beat.
  • 'bounce': overshoots by bounceDeg and springs back to the landing angle. A mechanical-stop feel.