Skip to content

Commit ba8641f

Browse files
committed
Fix: Navigation back not working with shortcuts and gamepad
1 parent 0a1b87a commit ba8641f

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010

1111
- Allow disabling `Do not enlarge more than its original size` in Webtoon mode [`7519ac5`](https://github.com/ollm/OpenComic/commit/7519ac5cd0ac4407a4d0edec7e7a3e2a76832f84)
1212
- Improved rotation and support for rotating in PDF [`cb90771`](https://github.com/ollm/OpenComic/commit/cb907714ca7d713bcbf3471564e48a3e67c8ca40)
13-
- PDFs are rendered to a blob image instead of a canvas
13+
- PDFs are rendered to a blob image instead of a canvas [`554c1ef`](https://github.com/ollm/OpenComic/commit/554c1ef88adf358acae14f9bf28f0e1f4f626d8f)
1414

1515
##### 🐛 Bug Fixes
1616

@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2020
- Correct support Komga OPDS server [`0ae69bf`](https://github.com/ollm/OpenComic/commit/0ae69bf29612ef667cf944bf07ab8e7e488fd60c)
2121
- Some mime types are not correct detected [`baa8397`](https://github.com/ollm/OpenComic/commit/baa8397da5f33b5129607bbcc368c4eb782bc4e9)
2222
- Update electron to fix white lines in Webtoon mode [`2b98eb3`](https://github.com/ollm/OpenComic/commit/2b98eb3af7c1651149063e6176a5ae7e6b3d1c81)
23+
- Navigation back not working with shortcuts and gamepad
2324

2425
## [v1.5.0](https://github.com/ollm/OpenComic/releases/tag/v1.5.0) (19-06-2025)
2526

‎scripts/gamepad.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ function goBack(fromKeyboard = false)
803803
hasKeyboardNavigation = true;
804804

805805
// Close dialog
806-
let dialogActive = document.querySelector('.dialogs .dialog');
806+
const dialogActive = document.querySelector('.dialogs .dialog');
807807

808808
if(dialogActive)
809809
{
@@ -813,7 +813,7 @@ function goBack(fromKeyboard = false)
813813
}
814814

815815
// Close menu
816-
let menuActive = document.querySelector('.menu-close.a');
816+
const menuActive = document.querySelector('.menu-close.a');
817817

818818
if(menuActive)
819819
{
@@ -824,7 +824,7 @@ function goBack(fromKeyboard = false)
824824
}
825825

826826
// Go back
827-
let barBack = document.querySelector('.bar-back.active, .bar-back.show');
827+
const barBack = document.querySelector('.bar-left.active .bar-back, .bar-left.show .bar-back, .bar-back.active, .bar-back.show');
828828

829829
if(barBack)
830830
{

0 commit comments

Comments
 (0)