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

onZoomOut bug #137

Open
hugolanuit opened this issue Jul 12, 2018 · 1 comment
Open

onZoomOut bug #137

hugolanuit opened this issue Jul 12, 2018 · 1 comment

Comments

@hugolanuit
Copy link

Hey Jack,

I'm trying to toggle a class when I zoom in/zoom out to play with the cursor state via CSS.

Whenever the zoom out event is trigger and the jquery function (removeClass is this case) is called, I get this error:
Uncaught TypeError: r.easing[this.easing] is not a function

Any ideas?

Thanks,
Hugo.

screen shot 2018-07-12 at 12 28 58 pm

@jackmoore
Copy link
Owner

Sorry, I'm not sure what this would be about. Easing probably wouldn't be called unless something was being animated, which I'm not seeing any of in the code you included. Zoom calls $.fadeTo which could trigger easing, so if you've set your own values for Zoom's 'duration', 'onZoomIn', or 'onZoomOut', double check to make sure the values you used wouldn't throw an error.

My guess is that it's not specific to Zoom and that jQuery has been extended with something (e.g. jQuery UI) and something about that is not working or is missing and it's causing normal usage to break.

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

2 participants