From fc1a274fcbaf9e463f5181dc999570602bc810f5 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 20 Feb 2019 17:22:43 +0000 Subject: [PATCH] Check for hover after timeout --- assets/js/frontend/single-product.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/js/frontend/single-product.js b/assets/js/frontend/single-product.js index e4ba732e3f7..c31fa2dc60b 100644 --- a/assets/js/frontend/single-product.js +++ b/assets/js/frontend/single-product.js @@ -222,6 +222,12 @@ jQuery( function( $ ) { zoomTarget.trigger( 'zoom.destroy' ); zoomTarget.zoom( zoom_options ); + + setTimeout( function() { + if ( zoomTarget.find(':hover').length ) { + zoomTarget.trigger( 'mouseover' ); + } + }, 100 ); } };