Frontend: Enable history mode for photo viewer
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
14617b4387
commit
84a72104d5
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue