Skip to content
Snippets Groups Projects
Commit d5e9c7d5 authored by Bart Visscher's avatar Bart Visscher
Browse files

Gallery: fix calculation of folder thumbnail selection

parent fbad1da9
No related branches found
No related tags found
No related merge requests found
......@@ -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');
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment