![]() |
VOOZH | about |
React onPointerCancel fires when a pointer event cancels, like when someone is zoomed into an image and the user suddenly leaves it, which is a part of the onPointerCancel event.
onPointerCancel={function}Parameter :
Return type:
Example 1 : In this example, we implemented an area where the user will move their cursor and cancel their pointer inside the area, which will fire a pointer cancellation event that will show an alert.
Output:
Example 2: In this example, we implemented an area where the user will cancel their pointer events, and the message will print on the console..
Output: