I need to expose a button elsewhere on the page that will restore the zoom to the default. The recommendation that I'm hearing is that I should use $('body').zoomTo().
Using the github example in examples/scrolling/index.html, I added the zoomTarget class to body and appended the following button:
I need to expose a button elsewhere on the page that will restore the zoom to the default. The recommendation that I'm hearing is that I should use $('body').zoomTo().
Using the github example in examples/scrolling/index.html, I added the zoomTarget class to body and appended the following button:
It never has an effect.
Am I doing something wrong?