I'm trying to make a mobile app using html, javascript and canvas, basically scrolling down increases the zoom of the image and scrolling up decreases it, but I can only decrease the zoom because it keeps increasing as I scroll up size, I want it to reduce size.
Part of the javascript code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
P粉8180888802023-10-09 10:11:10
To get Delta Y
, use the following code to solve it, which stores the touch position.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|