淡淡烟草味2017-05-16 13:23:18
The first one looks like it can be implemented using jquery-ui, which is a slider component
The second one probably needs to be studied. When dragging, calculate the movement of x and y, and then bring it into the formula to find the next coordinate point in the direction of movement