I'm currently making a game, and i need to zoom into canvas. I've read a lot about how to zoom in canvas, with the ctx.scale() propriety, the thing is, I want to zoom with both fingers.
I already have the zoom, but it's zooming from the top/left canvas, and not on the middle of my fingers. I have the middle point between finger 1 and finger 2, but i don't know how to zoom into that specific middle point !
This exemple pretty sums up what i need (I just need the zoom) : Zoom Canvas to Mouse Cursor
It's working really fine, but with the wheel !
If any of you as any ideas, I'd be really glad to talk ! :)
Thanks everyone !