Fix zoom target

Closes #17227
This commit is contained in:
Mike Jolley 2017-10-17 17:26:08 -07:00
parent 516ea83353
commit 435c4344db
2 changed files with 4 additions and 4 deletions

View File

@ -269,10 +269,10 @@ jQuery( function( $ ) {
eventTarget = $( e.target ),
clicked;
if ( ! eventTarget.is( '.woocommerce-product-gallery__trigger' ) ) {
clicked = eventTarget.closest( '.woocommerce-product-gallery__image' );
} else {
if ( eventTarget.is( '.woocommerce-product-gallery__trigger' ) || eventTarget.is( '.woocommerce-product-gallery__trigger img' ) ) {
clicked = this.$target.find( '.flex-active-slide' );
} else {
clicked = eventTarget.closest( '.woocommerce-product-gallery__image' );
}
var options = $.extend( {

File diff suppressed because one or more lines are too long