Skip to main content

HIT_BAND_SLACK

Constant HIT_BAND_SLACK 

Source
pub const HIT_BAND_SLACK: f32 = 2.0;
Expand description

Grab tolerance added to every stroke band’s half-width, in local coordinates.

A rendered one-pixel connector is not a one-pixel target: this is what makes a thin stroke clickable without pixel-perfect aim, and it is the same 2.0 the per-segment hit-test carried before ItemShape existed. It is not the pointer-kind allowance — a coarse pointer earns more, from the view’s separate miss-only slop pass.