jackmoore / zoom

jQuery plugin for zooming images on mouseover.
http://www.jacklmoore.com/zoom/
MIT License
1.54k stars 459 forks source link

onZoomOut bug #137

Open hugolanuit opened 6 years ago

hugolanuit commented 6 years ago

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 commented 6 years ago

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.