Merge pull request #17196 from woocommerce/fix/zoom-for-target-function
Check zoom is enabled before running initZoomForTarget
This commit is contained in:
commit
8f16affe73
|
@ -183,6 +183,10 @@ jQuery( function( $ ) {
|
|||
* Init zoom.
|
||||
*/
|
||||
ProductGallery.prototype.initZoomForTarget = function( zoomTarget ) {
|
||||
if ( ! this.zoom_enabled ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var galleryWidth = this.$target.width(),
|
||||
zoomEnabled = false;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue