![]() |
VOOZH | about |
React onTouchMove event fires when the user touches and moves the cursor. Similar to other elements in it, we have to pass a function for process execution.
It is similar to the HTML DOM ontouchmove event but uses the camelCase convention in React.
onTouchMove={function}Example 1: In this example, we implemented a TouchMove area in it where when user touch and move it will gives an alert through function.
Output :
Example 2 : In this example, we implemented an area where the user, when touch and move, will get an message in console that a touch event is fired.
Output: