Simplest way to detect a pinch

前端 未结 7 2040
清酒与你
清酒与你 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:06

    My answer is inspired by Jeffrey's answer. Where that answer gives a more abstract solution, I try to provide more concrete steps on how to potentially implement it. This is simply a guide, one that can be implemented more elegantly. For a more detailed example check out this tutorial by MDN web docs.

    HTML:

    ....

    JS

    
    

提交回复
热议问题