IHitOptions
Type interface
Represents collection of options related to click/tap
Sources
IHitOptions is an interface: it describes a shape of data and is not imported on its own.
Properties
doubleHitTimeType
numberIf there were less than this milliseconds between two consecutive clicks consider it a double-hit.
hitToleranceType
numberMaximum number of pixels a pointer can move from its original position while holding down mouse/touch to still consider it a click rather than some other gesture.
noFocusType
booleanIf set to
true(default), Interaction will try to trick the browser not to move focus on a clicked/touched element. This prevents items to become focused (and highlighted) on click/touch, but still make them focusable using keyboard for accessibility.