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

looking for a reset state button #126

Open
lambdaka opened this issue Sep 12, 2018 · 1 comment
Open

looking for a reset state button #126

lambdaka opened this issue Sep 12, 2018 · 1 comment

Comments

@lambdaka
Copy link

Hi thanks for the plugin,
I looked for a way to make a reset button..
I manage to make it working on an exemple without using a container by using
$("body").zoomTo();

But i f I use the two divs zoomViewport and zoomContainer as container the button doesn't work.
i tried with
$(".zoomViewport").zoomTo(); and $(".zoomContainer").zoomTo();
but no luck.. i'ts zomming out but it's zooming out to much !

Is ther a way of using a choosen container and make a reset state button..?

Thanks !

@lambdaka
Copy link
Author

lambdaka commented Sep 16, 2018

SO I manage to do sometnhing by adding this jquery.zoomooz.js at line 1536

`
line 1536

    $('.reset').on("click", function(evt) {
        if(settings.closeclick && zoomTarget.hasClass("selectedZoomTarget")) {
            settings.root.click();
        } else {
            settings.root.click();
        }
        evt.stopPropagation();
    });

`

hope that will help someone else !

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