Skip to content

Commit 26efc0e

Browse files
committed
Finally fixed prev / next links clicks
1 parent 4021a0e commit 26efc0e

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

img/platforms/ps1.png

-63.8 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "emulsion",
3-
"version": "0.9.55",
3+
"version": "0.9.56",
44
"summary": "Better gaming throught chemistry",
55
"description": "Display your games collection into responsive galleries, manage game metadata, cover art and emulator configuration. Launch your games in style.",
66
"homepage": "https://yphil.gitlab.io/emulsion",

src/js/slideshow.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,13 +526,11 @@ export function initGallery(platformNameOrIndex, focusIndex = null) {
526526
});
527527

528528
document.getElementById('prev-link').addEventListener('click', function() {
529-
goToGalleryPage(-1);
530-
selectedIndex = 1;
529+
goToPrevPage();
531530
});
532531

533532
document.getElementById('next-link').addEventListener('click', function() {
534-
goToGalleryPage(1);
535-
selectedIndex = 0;
533+
goToNextPage();
536534
});
537535

538536
document.getElementById('view-mode-toggle-button').addEventListener('click', function() {

0 commit comments

Comments
 (0)