Skip to content

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

doubleHitTime

Type number

If there were less than this milliseconds between two consecutive clicks consider it a double-hit.

hitTolerance

Type number

Maximum 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.

noFocus

Type boolean

If 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.