Skip to content

Commit bdbc0dc

Browse files
committed
Fix: Turn page forward in manga mode (Only on non-arrow keys)
1 parent dcb2f85 commit bdbc0dc

5 files changed

Lines changed: 19 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1818
- Option to disable `Align with next horizontal` when reading on double page [`97d8ecd`](https://github.com/ollm/OpenComic/commit/97d8ecdde04c2a5c418440d8fbbf06496b16c8ba)
1919
- Option in setting to adjust gamepad sensitivity [`f309c27`](https://github.com/ollm/OpenComic/commit/f309c27195ccf91b0d20600c06f1af03deee5611)
2020
- Copy image to clipboard [`bb96cef`](https://github.com/ollm/OpenComic/commit/bb96cef97ee1783fc27f3600548a91bb37a96045)
21-
- OPDS support [`b72f32f`](https://github.com/ollm/OpenComic/commit/b72f32f2445b90f13f5e2cc45865c2c17a72af82)
21+
- OPDS support [`b72f32f`]actio(https://github.com/ollm/OpenComic/commit/b72f32f2445b90f13f5e2cc45865c2c17a72af82)
2222
- Button to enable/disable full screen from the more options menu [`5d2ac36`](https://github.com/ollm/OpenComic/commit/5d2ac367c61da97d04cd67526470fb7885c1b3bf)
2323
- Show package versions in About OpenComic [`888d9ba`](https://github.com/ollm/OpenComic/commit/888d9ba2e23241b1868b6a360e7bca1a0bef9586)
2424
- Custom mouse wheel shortcuts [`1db0fc7`](https://github.com/ollm/OpenComic/commit/1db0fc7721e33e0e423f0b57590fd65b80cd5df7)
@@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3333
- Page jumps during zoom animation in vertical reading [`d9f94e7`](https://github.com/ollm/OpenComic/commit/d9f94e7eb5e757a28c6b92f0c3a791fc3be61282)
3434
- Stuttering when decode big images (From sync decode to async when possible) [`d320aad`](https://github.com/ollm/OpenComic/commit/d320aad1d95e886d531dcab5721dc44c125cf028)
3535
- Move zoom using cursor after turning a pages not working property [`3012715`](https://github.com/ollm/OpenComic/commit/30127150751b1de611f95069e748eab68fcd2f51)
36+
- Turn page forward in manga mode (Only on non-arrow keys)
3637

3738
## [v1.4.1](https://github.com/ollm/OpenComic/releases/tag/v1.4.1) (08-02-2025)
3839

scripts/shortcuts.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,13 @@ function loadShortcuts()
356356
}
357357
else
358358
{
359-
reading.goPrev();
359+
const code = event.code || '';
360+
361+
if(_config.readingManga && !reading.readingViewIs('scroll') && !/Arrow|KeyD$|KeyA$/iu.test(code))
362+
reading.goNext();
363+
else
364+
reading.goPrev();
365+
360366
return true;
361367
}
362368

@@ -375,7 +381,13 @@ function loadShortcuts()
375381
}
376382
else
377383
{
378-
reading.goNext();
384+
const code = event.code || '';
385+
386+
if(_config.readingManga && !reading.readingViewIs('scroll') && !/Arrow|KeyD$|KeyA$/iu.test(code))
387+
reading.goPrev();
388+
else
389+
reading.goNext();
390+
379391
return true;
380392
}
381393

scripts/storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ var storageDefault = {
143143
readingHideContentLeftFullScreen: true,
144144
readingHideBarHeaderFullScreen: true,
145145
readingRotateHorizontalsAnticlockwise: false,
146-
readingMaxMargin: 400,
146+
readingMaxMargin: 800,
147147
readingGlobalZoom: true,
148148
readingGlobalZoomSlide: true,
149149
readingMoveZoomWithMouse: false,

templates/settings.content.right.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ <h2 class="headline-small">{{language.settings.reading.main}}</h2>
125125
</div>
126126

127127
<div class="simple-slider gamepad-item" data-gamepad-left="events.rangeMoveStep(this, -1)" data-gamepad-right="events.rangeMoveStep(this, 1)" style="margin-top: 10px;">
128-
<div class="simple-slider-text">{{language.settings.reading.maxMargin}}<div><i class="material-icon slider-reset" onclick="events.resetRange(this)" data-default="400" style="right: 70px;">undo</i><span>{{config.readingMaxMargin}}</span>px</div></div>
128+
<div class="simple-slider-text">{{language.settings.reading.maxMargin}}<div><i class="material-icon slider-reset" onclick="events.resetRange(this)" data-default="800" style="right: 70px;">undo</i><span>{{config.readingMaxMargin}}</span>px</div></div>
129129
<div class="range">
130130
<div class="range-position">
131131
<span class="range-line" style="width: 100%"></span>

themes/material-design/actions.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,7 @@
14231423
letter-spacing: var(--md-sys-typescale-label-large-letter-spacing);
14241424
display: flex;
14251425
position: relative;
1426+
white-space: nowrap;
14261427
}
14271428

14281429
.simple-button > div i

0 commit comments

Comments
 (0)