Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tograh opened this issue Sep 15, 2014 · 0 comments
Open

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

tograh opened this issue Sep 15, 2014 · 0 comments

Comments

@tograh
Copy link

tograh commented Sep 15, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant