I’m trying to make a website of mine responsive. It uses JavaScript
to let you select parts of an image on PC
but it doesn’t work on mobile. That’s because of the events used – mouseup
, mousedown
, mousemove
. How can I refactor my code so that it works on mobile? All I need to know is the coordinates of the selection.