Check for hover after timeout

This commit is contained in:
Mike Jolley 2019-02-20 17:22:43 +00:00
parent 76b7a4facf
commit fc1a274fcb
1 changed files with 6 additions and 0 deletions

View File

@ -222,6 +222,12 @@ jQuery( function( $ ) {
zoomTarget.trigger( 'zoom.destroy' ); zoomTarget.trigger( 'zoom.destroy' );
zoomTarget.zoom( zoom_options ); zoomTarget.zoom( zoom_options );
setTimeout( function() {
if ( zoomTarget.find(':hover').length ) {
zoomTarget.trigger( 'mouseover' );
}
}, 100 );
} }
}; };