Expand description
Samples in, kernel input out โ and nothing of the browser in between.
Structsยง
- Press ๐
- The button press in progress. Latched at the press, so releasing the pan key mid-drag cannot hand a half-finished pan to a tool.
- Read
- What one batch of samples came to: the input the kernel resolves, the camera moves to apply before it, and whether the camera is being worked.
- Reader
- The latches a stream of DOM events needs to be read through: which pointers are down and where, what the press in progress drives, where the two-finger gesture stood, whether the pan key is held, and where the pointer last was.
- Span ๐
- Where two fingers are, as the one thing a pan and a pinch are read from: the point between them, and how far apart they are.
Enumsยง
- Drives ๐
- What a press in progress drives.
- Fingers
- How many pointers the gesture in flight has.
- Focus
- Who holds the keyboard. A text field owning it is typing, not editing the drawing: its Backspace must not delete the selected shape, and its space must not arm a pan.
- PanKey
- Whether the key that turns a primary drag into a pan is held: space, the convention across drawing and diagram editors.