in React JS by
Q:

What are the Pointer Events supported in React?

▼ Show 1 Answer

0 votes
by

Pointer Events provide a unified way of handling all input events. In the old days we had a mouse and respective event listeners to handle them but nowadays we have many devices which don't correlate to having a mouse, like phones with touch surface or pens. We need to remember that these events will only work in browsers that support the Pointer Events specification.

The following event types are now available in React DOM:

  • onPointerDown
  • onPointerMove
  • onPointerUp
  • onPointerCancel
  • onGotPointerCapture
  • onLostPointerCapture
  • onPointerEnter
  • onPointerLeave
  • onPointerOver
  • onPointerOut
React JS
Learn More with Madanswer

Related questions

0 votes
0 votes
asked Feb 24 in React JS by SakshiSharma
0 votes
0 votes
...