Hello good people,
Can somebody help me please with react touch event for mobile and tablet views.
I have implemented Input number component im my app and looks like this:
render() {
const upHandler = (<div className=“upHandler” ></div>);
const downHandler = (<div className=“downHandler”></div>);
return (
<InputNumber
upHandler={upHandler}
downHandler={downHandler}
/>
)
upHandler and downHanlers add a divs which are up and down arrows. However, when I open website on y smartphone( iOS or Android) arrows are not increasing/decreasing values of an input filed on hold. They do when app is opened in desktop/laptop mode. So, touch events are not working at all. I have tried many things like npm react-holdable and simliar but nothing seems to be working.
Do you have any ideas on how to make up and down arrows increase/decrease values when application is opened with smartphone or tablet?
Thank you very much