'is onTouchStart exactly equivalent to onMouseDown and onTouchEnd exactly equivalent to onMouseUp?

It is not behaving the same for me on a range slider.

The code that is triggered for the onMouseDown and the onTouchStart is exactly the same code and same for the end and up.

So are they exactly equivalent or are there differences?



Solution 1:[1]

The event order triggered is (most of the cases)

touchstart  > touchmove >  touched > mousemove > mousedown > mouseup > click

So No they are not the same or equivalent, but can be considered to perform similar functionality on different devices

Solution 2:[2]

onTouchStart is used on touch screen surface whereas, onMouseDown is used when a user presses a mouse button over an element

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Rahil Siddique