Skip to main content

Module gesture

Module gesture 

Source
Expand description

Platform-independent pointer hit testing; coordinates are CSS client pixels.

Structs§

HitRect
Rectangle measured in client coordinates.

Functions§

drop_placement
Resolve before/after bands (12 × zoom) and the central child target. LEFT/RIGHT/SIDE siblings are vertical; DOWN siblings are horizontal.
edge_pan
Per-pointer-step edge pan within a 50px band, independent of document history.
fit
Viewport that fits the canvas-space box a..b into a view of size, centred, with a 24px margin and magnification at most 100%.
is_drag
The upstream five client-pixel threshold avoids moving nodes on clicks.