jaukia / zoomooz

An easy-to-use jQuery plugin for making zooming web pages.
http://janne.aukia.com/zoomooz/
1.79k stars 275 forks source link

$('body').zoomTo() not resetting. #100

Open tograh opened 10 years ago

tograh commented 10 years ago

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:

<input type="button" value="press" onclick="{$('body').zoomTo();}"/>

It never has an effect.

Am I doing something wrong?