InputModel Class

Definition

Turns a shell's pointer, touch, wheel and keyboard events into scrolls, zooms and page turns of a ProgressiveZoom: a drag scrolls and flings with inertia, two fingers pinch about their centre, a double-tap toggles between fit-width and a zoom anchored at the tap, paged modes snap to spreads, Ctrl or Cmd with the wheel zooms about the pointer, and the keys page, jump and zoom.

public sealed class InputModel

Remarks

Spec #33 viewer capability 14. Framework-neutral: a shell translates its platform's events (the DOM's pointer, wheel and keyboard events in the Blazor shell) into these calls one for one, with coordinates in device-independent pixels relative to the viewport's top-left corner, and calls RunFrame(TimeSpan) once per display frame, then draws GetFrame(Span<FramePart>).

Single-threaded and deterministic: no timers, tasks or threads (so it runs on the browser's one thread); every time it needs comes from TimeProvider, so a manual clock replays a gesture exactly. Events and frames allocate nothing.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Fields (1)

Properties (6)

Methods (13)