Skip to main content
deleted 1 character in body
Source Link
madmed
  • 626
  • 6
  • 13

The best method is to use svg transforms, with a combination of translate and scale you can perform a zoom centered on your pinch. You just need to figure out the formula. This example can help you (it uses css transforms but you get the idea): https://github.com/EightMedia/hammer.js/blob/master/examples/pinchzoom.htmlhttps://github.com/EightMedia/hammer.js/blob/1.0.x/examples/pinchzoom.html

The best method is to use svg transforms, with a combination of translate and scale you can perform a zoom centered on your pinch. You just need to figure out the formula. This example can help you (it uses css transforms but you get the idea): https://github.com/EightMedia/hammer.js/blob/master/examples/pinchzoom.html

The best method is to use svg transforms, with a combination of translate and scale you can perform a zoom centered on your pinch. You just need to figure out the formula. This example can help you (it uses css transforms but you get the idea): https://github.com/EightMedia/hammer.js/blob/1.0.x/examples/pinchzoom.html

added 46 characters in body
Source Link
madmed
  • 626
  • 6
  • 13

The best method is to use svg transforms, with a combination of translate and scale you can perform a zoom centered on your pinch. You just need to figure out the formula. This example can help you (it uses css transforms but you get the idea): https://github.com/EightMedia/hammer.js/blob/master/examples/pinchzoom.html

The best method is to use svg transforms, with a combination of translate and scale you can perform a zoom centered on your pinch. You just need to figure out the formula. This example can help you: https://github.com/EightMedia/hammer.js/blob/master/examples/pinchzoom.html

The best method is to use svg transforms, with a combination of translate and scale you can perform a zoom centered on your pinch. You just need to figure out the formula. This example can help you (it uses css transforms but you get the idea): https://github.com/EightMedia/hammer.js/blob/master/examples/pinchzoom.html

Source Link
madmed
  • 626
  • 6
  • 13

The best method is to use svg transforms, with a combination of translate and scale you can perform a zoom centered on your pinch. You just need to figure out the formula. This example can help you: https://github.com/EightMedia/hammer.js/blob/master/examples/pinchzoom.html