Skip to main content

Module dom

Module dom 

Source
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.deltaMode counts lines rather than pixels; Firefox reports wheels this way. epaint uses the same nominal row height.

Functions§

at 🔒
button_of
Which button a MouseEvent.button names. 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, or None for a key it does not read — which may still be a Chord; see chord_of.
pixels 🔒
pointer
One pointer event as the listener that caught it names its phase. origin is the canvas’s top-left in client coordinates, so the sample is in the canvas’s own CSS pixels.
wheel