Simplest way to detect a pinch

前端 未结 7 2073
清酒与你
清酒与你 2020-11-28 19:29

This is a WEB APP not a native app. Please no Objective-C NS commands.

So I need to detect \'pinch\' events on iOS. Problem is every plugin or metho

7条回答
  •  难免孤独
    2020-11-28 20:05

    Hammer.js all the way! It handles "transforms" (pinches). http://eightmedia.github.com/hammer.js/

    But if you wish to implement it youself, i think that Jeffrey's answer is pretty solid.

提交回复
热议问题