Switcher icon indicating copy to clipboard operation
Switcher copied to clipboard

Autoselect first option does not fires js callback after main image change

Open alexdrupal opened this issue 8 years ago • 1 comments

Hello

When I click on images - js callback works. It changes main images and does some magick to make product zoom working in my theme. But when page is just loaded - it only changes main image, but js callback isn't loaded I think. When I hover mouse over the product image - it show the default image. Take a look at the page to see what I mean. https://test.ensembleshops.ru/11111.html

alexdrupal avatar Oct 05 '16 16:10 alexdrupal

Small update - it caused by if (this.fullLoad && callback){ //callback - give it 0.1 seconds for the image src to be changed //a small flicker might occur //if you don't like it you can remove it at your own risk eval.delay('0.1', callback) } this.fullLoad is false when first option is selected. I've removed it from above if and everything is working now

alexdrupal avatar Oct 06 '16 10:10 alexdrupal