Passed in to tap event handlers like onTap the TapInfo object contains information about the tap gesture such as it‘s location.
onTap
TapInfo
function onTap(event, info) { console.log(info.point.x, info.point.y)}<motion.div onTap={onTap} /> Copy
function onTap(event, info) { console.log(info.point.x, info.point.y)}<motion.div onTap={onTap} />
Contains x and y values for the tap gesture relative to the device or page.
x
y
function onTapStart(event, info) { console.log(info.point.x, info.point.y)}<motion.div onTapStart={onTapStart} /> Copy
function onTapStart(event, info) { console.log(info.point.x, info.point.y)}<motion.div onTapStart={onTapStart} />
Generated using TypeDoc
Passed in to tap event handlers like
onTaptheTapInfoobject contains information about the tap gesture such as it‘s location.