12

Google has now implemented a very unique pinch zoom for their images. The viewport meta tag does not allow user scaling or zooming, and as you would expect the resulting content is not pinch-zoomable on a mobile touch device. The image, however, is pinch zoomable. The image is the only part of the page that zooms, and the viewport scaling never changes. Does anyone know what javascript framework they are using to accomplish this? Is it publicly available?

wayofthefuture
  • 8,339
  • 7
  • 36
  • 53
  • 1
    I doubt that it is publicly available. – PitaJ Sep 09 '15 at 00:59
  • 1
    did you see this? --> [Using Google Maps Javascript API pinch-to-zoom on my own image](http://stackoverflow.com/questions/6207481/using-google-maps-javascript-api-pinch-to-zoom-on-my-own-image) – WhiteHat Sep 12 '15 at 21:38
  • No I haven't, very nice. I wonder if that's what they are using. Their image allows some kind of vertical swipe detection, which allows the page to scroll, which is important. I'm not too sure the map framework would be capable of this. – wayofthefuture Sep 13 '15 at 15:00

2 Answers2

2

I don't think their version is opensource, however this library is pretty nice:

https://openseadragon.github.io/

Mo Binni
  • 265
  • 1
  • 12
0

Not sure what google uses but there is a jQuery library that does this. It's called panzoom

Abhishek Sarkar
  • 488
  • 1
  • 4
  • 12