Gallery: fix calculation of folder thumbnail selection

This commit is contained in:
Bart Visscher 2011-12-18 23:06:54 +01:00
parent fbad1da9e2
commit d5e9c7d572
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ Albums={
if (albumMetadata == undefined) {
return;
}
var x = Math.min(Math.floor((e.clientX - this.offsetLeft)/(this.offsetWidth/albumMetadata.numOfCovers)), albumMetadata.numOfCovers-1);
var x = Math.min(Math.floor((e.layerX - this.offsetLeft)/(this.offsetWidth/albumMetadata.numOfCovers)), albumMetadata.numOfCovers-1);
x *= this.offsetWidth;
$(this).css('background-position', -x+'px 0');
});