summaryrefslogtreecommitdiffstats
path: root/apps/gallery/js/albums.js
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2011-12-21 18:35:29 +0100
committerBartek Przybylski <bart.p.pl@gmail.com>2011-12-21 18:35:29 +0100
commit3c428671090e2bd3d46d76567a45c2a9e1639127 (patch)
tree785f2821086745b4bbef1bc01e4fb111c961dc83 /apps/gallery/js/albums.js
parent865be6064a1f2f896ca3657fa6eef590748a4e39 (diff)
parente1b9b65e4159bdd6e0ed81c8cd6b588f03b3a018 (diff)
downloadnextcloud-server-3c428671090e2bd3d46d76567a45c2a9e1639127.tar.gz
nextcloud-server-3c428671090e2bd3d46d76567a45c2a9e1639127.zip
merged
Diffstat (limited to 'apps/gallery/js/albums.js')
-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 a8e317159d5..387cc611d5f 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');
});