Nouvelles Du Monde

Comment implémenter un zoom avant par pincement un zoom arrière en js

Does anyone know of a really good Javascript pinch-zooming algorithm? This is trickier than I had imagined, as you have to scale -AND- translate to keep the pinch zooming centered between your fingers.

And I want it to do pure translation when the user moves two fingers - kept an equal distance apart from each other - around the screen, i.e., this moving two fingers in unison should act like a single- finger "pan". 

Ce que j’ai essayé :

class='zoom_here'>div>

Facebook
Twitter
LinkedIn
Pinterest

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

ADVERTISEMENT