PDA

View Full Version : [CLOSED][CORE-3.1] LightBox dblclick show image but also fades out mask



art.home.ext
2 Feb 2010, 5:41 AM
Ext version tested:

Ext Core 3.1.0



Browser versions tested against:

FF3.5.6 (firebug 1.4.0 installed)
IE6 (more difficult to reproduce)


Operating System:

WinXP Pro


Description:

A quick Dblclick on a thumb fades out mask but shows image


Steps to reproduce the problem:

Open URL http://www.extjs.com/playpen/ext-core-latest/examples/lightbox/
Double click on any thumb


The result that was expected:

the image is not opened or
the image is opened but mask does not fade out


The result that occurs instead:

the image is opened and mask fades out


Screenshot:

attached


Possible fix:

not provided

Jamie Avins
2 Feb 2010, 9:49 AM
It's listening to click not double-click...

art.home.ext
3 Feb 2010, 1:44 AM
you're right, and I understood that before posting.

Since there are defer effects, it is obvious that there may be some defects if 'click' event is used to open and close image.

something like the following seems to fix the problem :


setImage: function(index){
...
this.isLoading = false;
},
open: function(image, sel, group) {
this.isLoading = true;
...
},
close: function(){
if (this.isLoading) return;
...
}


Regards.