pbakaus / scroller

Accelerated panning and zooming for HTML and Canvas
MIT License
3.89k stars 422 forks source link

Plans to implement Pinch to Zoom? #49

Open peteygao opened 10 years ago

peteygao commented 10 years ago

Right now it seems like Zooming has to be manually invoked, is there any plans of adding pinch to zoom on touch screen devices?

willcode4food commented 10 years ago

I'm not sure what you mean by this. If you handle the touch start, touch move and touch end events in your code and fire the events detailed in the docs, the pinch to zoom works. I've implemented it in something I'm working on. You can see it here http://projectneptune.azurewebsites.net/game

peteygao commented 10 years ago

Sorry, I don't see how you have implemented pinch to zoom in your game. I tried to pinch to zoom on your page with a touch device and I didn't see anything zooming occurring. Also the event to listen for is event.scale for pinch to zoom, right?