DOM events
onPointerDown
Handles a pointer press from mouse, touch or pen. A press is not necessarily a completed activation: it can be canceled or followed by a drag. Use click on native controls for ordinary actions so keyboard users retain access.
Formal Syntax & Structure
react syntaxreact
onPointerDown={handler}Working Example
Example Snippetreact
export default function App() { return <button type='button' onPointerDown={e=>console.log(e.pointerType)} onClick={()=>console.log('Selected')}>Select tool</button>; }