React onTouchMove Event Last Updated : 25 Jul, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report 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.Syntax:onTouchMove={function}Parameter : function that will call once the user touch and moves any part of an element or tag.Return type:event: It is an event object containing information about the event like target element and valuesExample 1: In this example, we implemented a TouchMove area in it where when user touch and move it will gives an alert through function. CSS /*App.css*/ .App { min-width: 30vw; margin: auto; text-align: center; color: green; font-size: 23px; } .Shaded { background-color: lightgray; height: 200px; width: 300px; margin: auto; border-radius: 6px; } JavaScript // App.js import "./App.css" const App = () => { const function1 = (event) => { alert("Touch and Move Start") } return ( <div className="App"> <h1>GeeksforGeeks</h1> <h2>Touch and move inside Shaded Region</h2> <div className="Shaded" onTouchMove={function1}> </div> </div> ); } export default App; 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. CSS /*App.css*/ .App { min-width: 30vw; margin: auto; text-align: center; color: green; font-size: 23px; } .Shaded { background-color: lightgray; height: 200px; width: 300px; margin: auto; border-radius: 6px; } JavaScript // App.js import "./App.css" const App = () => { const function1 = (event) => { console.log("Touch and Move Start") } return ( <div className="App"> <h1>GeeksforGeeks</h1> <h2>Touch and Move inside Shaded Region</h2> <div className="Shaded" onTouchStart={function1}> </div> </div> ); } export default App; Output: Comment More infoAdvertise with us Next Article React onPointerMove Event P prathamgfg Follow Improve Article Tags : Web Technologies ReactJS React Events Similar Reads React onTouchEnd Event React onTouchEnd event event fires when the user touches screen and releases the touch. Similar to other elements in it, we have to pass a function for process execution.It is similar to the HTML DOM ontouchend event but uses the camelCase convention in React.Syntax:onTouchEnd={function}Parameter : 2 min read React onMouseMove Event React onMouseMove event detects a mouse movement over an element. The event triggers when the mouse pointer moves while positioned over an element. It is particularly useful where you want to track and respond to the movement of the user's cursor.It is similar to the HTML DOM onmousemove event but u 2 min read React onTouchCancel Event React onTouchCancel event fires when touch interrupts. Similar to other elements in it, we have to pass a function for process execution. It is similar to the HTML DOM touchcancel event but uses the camelCase convention in React.Syntax:onTouchCancel={function}Parameter : function that will call when 2 min read React onTouchStart Event React onTouchStart event fires when the user touches one or more points in the element or tag. Similar to other elements in it, we have to pass a function for process execution.It is similar to the HTML DOM ontouchstart event but uses the camelCase convention in React.Syntax:onTouchStart={function}P 2 min read React onPointerMove Event The onPointerMove event in React fires whenever the cursor moves inside the tag or element where the event has been applied. Similar to other events, the onPointerMove takes a function which defines the process/task which has to be applied.Syntax:onPointerMove={function}Parameter : function: The fun 2 min read React onChange Event React onChange is an event handler that triggers when there is any change in the input field. This event captures the changes in an Input Field and executes the handler function. It is fired when the input field is modified and loses focus. It is one of the form events that updates when the input fi 2 min read Like