Expand description
The one wasm-bound layer of the input path: a DOM event, as a sample.
Constants§
- DRAGGED 🔒
- The pointer a drag is carried by. A browser runs a file drag itself and raises no pointer events for it, so the motion this reports belongs to no real device and takes an id no device will claim.
- LINES_
PER_ 🔒PAGE - And pages, for the rare host that reports those.
- PIXELS_
PER_ 🔒LINE WheelEvent.deltaModecounts lines rather than pixels; Firefox reports wheels this way. epaint uses the same nominal row height.
Functions§
- at 🔒
- button_
of - Which button a
MouseEvent.buttonnames. Public because a host has to know one before the sample is made: a button the camera drives must also be refused whatever the platform binds it to. - dragged
- Where a file being dragged over the canvas is, as a motion.
- held 🔒
- key
- The canvas’s own reading of
event, orNonefor a key it does not read — which may still be aChord; seechord_of. - pixels 🔒
- pointer
- One pointer event as the listener that caught it names its phase.
originis the canvas’s top-left in client coordinates, so the sample is in the canvas’s own CSS pixels. - wheel