Frontend: Enable history mode for photo viewer

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2019-12-27 10:36:52 +01:00
parent 14617b4387
commit 84a72104d5

View file

@ -40,7 +40,7 @@ class Viewer {
if (this.el === null) {
let err = "no photo viewer element found";
console.log(err);
console.warn(err);
throw err;
}
}
@ -67,7 +67,7 @@ class Viewer {
const options = {
index: index,
history: false,
history: true,
preload: [1, 1],
focus: true,
modal: true,
@ -128,7 +128,6 @@ class Viewer {
photoSrcWillChange = false;
});
gallery.listen("gettingData", function (index, item) {
item.src = item[nextSize].src;
item.w = item[nextSize].w;