aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-12-18 23:06:54 +0100
committerBart Visscher <bartv@thisnet.nl>2011-12-18 23:10:43 +0100
commitd5e9c7d5724d30b659119e11f567492d30f0581c (patch)
tree1307b87018e9fa49403d79a24ca0975ccc09d8cf
parentfbad1da9e2cea507d7a69a0d3291268b8e76b2c2 (diff)
downloadnextcloud-server-d5e9c7d5724d30b659119e11f567492d30f0581c.tar.gz
nextcloud-server-d5e9c7d5724d30b659119e11f567492d30f0581c.zip
Gallery: fix calculation of folder thumbnail selection
-rw-r--r--apps/gallery/js/albums.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/js/albums.js b/apps/gallery/js/albums.js
index 7ab243ededf..fb091698a76 100644
--- a/apps/gallery/js/albums.js
+++ b/apps/gallery/js/albums.js
@@ -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');
});