Interfaces

CanvasPressOptions

Extends

Properties

onPress?

optional onPress?: (press: CanvasPress) => void;

Called for every press, whatever it landed on - including nothing.

Parameters

press

CanvasPress

Returns

void


precise?

optional precise?: boolean;

Test the filled region rather than the bounding box. Defaults to false, which is what a tap target usually wants and is much cheaper on paths.

Inherited from

HitTestOptions.precise

On this page