title: pinch zoom in, zoom out - Javascript/jQuery/jQuery mobile events for web on Android platform?
body: <p>What are the Javascript or jQuery or jQuery mobile events involved in pinch zoom in and zoom out? I am trying to capture those events to zoom in and zoom out of an image which is inside a div without affecting the entire layout of the website. <a href="https://stackoverflow.com/questions/11183174/simplest-way-to-detect-a-pinch">Simplest way to detect a pinch</a> works for iPad but not android. </p>
  
  <p>What are the equivalent way to detect the same on Android platform for web?</p>
  
  <p>Any help is appreciated.</p>
  
  <p><strong>EDIT:</strong> I have been trying <a href="https://github.com/HotStudio/touchy" rel="nofollow noreferrer">touchy.js</a> and that works for doing zoom-in and zoom-out for images but, <strong>zooming into an image is not useful if part of the image is not accessible by finger swipe or something of that sort</strong>.</p>
  
  <p>For example, consider the following code:</p>
  
  <pre><code>    &lt;div style=" border: 1px solid blue; width: 560px; overflow:scroll;"&gt;
        &lt;p&gt;&amp;nbsp;&lt;/p&gt;
        &lt;img id="image" src="images/tux.png" alt="my image" style=" border: 1em solid gray;" /&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I need the image to stay inside the div and the user should be able to move around the image after they zoom in. But with this code, I have to swipe my finger on the empty region (created by the paragraph tag) in order to go to different part of the image horizontally. Same happens vertically (you'll have to swipe your finger on an empty space on the web page in order to see the image length wise). What I am trying to say is, <em>swiping motion inside the image does not have any effect</em> while the users <strong>will</strong> expect to do that after zooming into the image.</p>
  
  <p>It's very hard to explain without an example and I tried creating <a href="http://jsfiddle.net/Debarupa/8peaf/" rel="nofollow noreferrer">http://jsfiddle.net/Debarupa/8peaf/</a> but it does not work as I would like it to since I cannot edit the meta in head. I needed to add:</p>
  
  <pre><code>     &lt;meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1" /&gt;
  </code></pre>
  
  <p>so that the entire webpage is not zoomable.</p>