简体   繁体   中英

How to implement Pinch to Zoom using Sencha Touch 2?

I am trying to implement Pinch/Zoom feature in one of my app using sencha touch 2. I have searched the web for the solution, and what I have found out that most of the solutions are for old version of sencha touch, ( https://github.com/Sang-Oh/PinchZoomImage , https://market.sencha.com/extensions/pinch-zoom-image ) and I couldn't implement any one of those. And now I am trying to implement this - Pinch-to-Zoom on Panels with HTML in Sencha Touch 2 , but this one doesn't work properly. Is there any way to implement the Pinch to Zoom using Sencha Touch 2.3?

We have solved this by including iScroll.js in the project. See http://iscrolljs.com/#zoom for its documentation. It's working nicely for us however it required some time to set up properly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM