useTouchEmulation
A Hook synthesizes TouchEvent from MouseEvent, so existing touch handlers can work seamlessly with mouse input. Useful for migration from touch-only code.
Usage
Type Declarations
Callback prefixes map to event binding modes:
onTouchStart->bindtouchstartandbindmousedowncatchTouchStart->catchtouchstartandcatchmousedowncaptureBindTouchStart->capture-bindtouchstartandcapture-bindmousedowncaptureCatchTouchStart->capture-catchtouchstartandcapture-catchmousedown
Append MT to use the main-thread variants, for example captureCatchTouchStartMT maps to main-thread:capture-catchtouchstart and main-thread:capture-catchmousedown.