Commit Graph

57 Commits

Author SHA1 Message Date
schroda
d00c930598 Fix "is read" detection in single/double page mode
In case the last page of a manga was immediately visible or the became visible after the "image spread state" change, the chapter never got marked as read
2024-12-12 13:21:48 +01:00
schroda
9a8655db2f Always use "secondary page index" as "current page index" when available
There was an issue where one had to click twice at the end of a chapter in the "double page mode" to get to the chapter transition page.
This was caused due to setting the "primary page index" as the "current page index" and thus, when opening the next page, it got changed to the "secondary page index". However, this page was already visible and therefore, there was no visual change.
2024-12-12 13:21:29 +01:00
schroda
89b81de830 Handle ".5" chapters in chapter transition warning
".5" chapters would incorrectly trigger the missing chapter warning
2024-12-12 12:56:40 +01:00
schroda
858c3b4bcf Display active profile for default value
In case the profile was not set and the default value got used, there was no indication of the active profile.
2024-12-12 02:09:19 +01:00
schroda
7307a3350d Catch uncaught promise 2024-12-11 22:40:06 +01:00
schroda
6dd2c8e2ff Show chapter transition warning
- on scanlator change
- on skipped chapters
2024-12-11 22:38:04 +01:00
schroda
8ca0af8d02 Hide overlay on page/scroll change 2024-12-11 22:36:02 +01:00
schroda
8b67c2d6a9 Add "cycle profiles" hotkey 2024-12-11 20:53:48 +01:00
schroda
cff0ed5ec3 Extract app routes into constant 2024-12-11 20:25:49 +01:00
schroda
8c4ff516c0 Rename "theme.tsx" to "ThemeCreator.ts" 2024-12-11 18:02:03 +01:00
schroda
b3e3d94bda Move "theme.tsx" to proper module 2024-12-11 13:57:24 +01:00
schroda
6802941252 Rename "Default reader settings" to "Reader settings" 2024-12-11 13:43:53 +01:00
schroda
5cda9a3972 Reduce chapter update mutation requests 2024-12-10 02:12:38 +01:00
schroda
1525f93e41 Fix lint issue 2024-12-09 22:42:51 +01:00
schroda
dac19386ed Remove outdated translation keys
Implementation changed and they're no longer needed
2024-12-09 22:41:48 +01:00
schroda
f98b34de15 Add "disabled" tap zone layout 2024-12-09 19:09:01 +01:00
schroda
230e23484a Properly disable hotkey scopes for open reader settings 2024-12-09 17:14:59 +01:00
schroda
044aa23ad4 Fix lint issue 2024-12-09 16:26:03 +01:00
schroda
2cd5a970cc Add tooltips to reader desktop quick settings 2024-12-09 16:24:32 +01:00
schroda
1387a016c7 Fix page changes via click/hotkey in horizontal pager
Due to the way the pages got scrolled into view, the current page was not changed to the new page.
This then prevented the previous/next page to get opened via click/hotkey actions
2024-12-09 15:07:52 +01:00
schroda
f654d95804 Fix click/scroll/hotkey open previous/next chapter
Properly handle all combinations of theme and reader reading directions
2024-12-09 15:06:11 +01:00
schroda
3839b438eb Always show overlay on mount
There were cases where the overlay got closed instead of opened on the first mount
2024-12-09 13:25:20 +01:00
schroda
b9313fe168 Prevent invalid page request
The page of the default state was rendered which caused a request to the base url (e.g. http://localhost:4567).
2024-12-09 13:25:20 +01:00
schroda
107bbfddbb Reset state on unmount
Prevent TypeErrors due to invalid previous state
2024-12-09 13:25:19 +01:00
schroda
0e3b629287 Fix open page per click in RTL mode
The action to perform which gets determined on a tap zone click is always in the correct direction, thus, the direction for the "openPage" call has to be forced to be "LTR" to prevent inverting the direction
2024-12-09 03:11:45 +01:00
schroda
8491091b2b Fix click/hotkey scrolling
- properly handle theme direction and reading direction combination
- prevent opening previous/next chapter in non-continuous reading modes
2024-12-09 02:38:37 +01:00
schroda
be0d1dbf30 Add logic to retry all errored pages 2024-12-09 02:38:37 +01:00
schroda
da0004de4a Base reader component 2024-12-09 02:38:37 +01:00
schroda
5de5eb7cdc Hide cursor on mouse inactivity 2024-12-09 02:38:37 +01:00
schroda
965aa7215c Update chapter 2024-12-09 02:38:37 +01:00
schroda
916abd3bb1 Resume chapter at specific page
- open from outside reader
 - is read
  - yes: 1st page
  - no : last read page
- inside reader via
 - chapter selection: first page
 - previous chapter : last page
 - next chapter     : first page
2024-12-09 02:38:37 +01:00
schroda
206c216093 Add mouse drag scrolling to continuous pagers 2024-12-09 02:38:37 +01:00
schroda
fb31a92cd7 Reader transition page 2024-12-09 02:38:37 +01:00
schroda
7cf78e771a Reader page rendering 2024-12-09 02:38:37 +01:00
schroda
0b1c67ce9f Reader hotkeys 2024-12-09 02:38:37 +01:00
schroda
0ae9d9ebb2 Custom reader profiles 2024-12-09 02:38:37 +01:00
schroda
0855fbcf23 Reader custom color filter 2024-12-09 02:38:37 +01:00
schroda
a607f7f368 Reader settings 2024-12-09 02:38:37 +01:00
schroda
9c57ace973 Reader Overlay 2024-12-09 02:38:37 +01:00
schroda
78e2b42136 Reader overlay page number 2024-12-09 02:38:37 +01:00
schroda
56684e405c Reader overlay desktop nav bar 2024-12-09 02:38:37 +01:00
schroda
671059c65c Reader overlay mobile bottom bar 2024-12-09 02:38:37 +01:00
schroda
c1eb631422 Reader overlay mobile header 2024-12-09 02:38:37 +01:00
schroda
7434ed0152 Reader progress bars 2024-12-09 02:38:37 +01:00
schroda
51fb660c7b Reader tap zones 2024-12-09 02:38:37 +01:00
schroda
8e59763bba Delete deprecated reader files 2024-12-09 02:38:37 +01:00
schroda
1d50edf1a1 Prioritize current reader page request 2024-11-13 15:47:04 +01:00
schroda
f88dda32a0 Properly handle double spread offset
There were cases were a page after a double spread page was rendered twice.

1: |  double spread page  |
2: |   page A  |  page B  |
3: |   page B  |  page C  |
2024-11-08 18:12:39 +01:00
schroda
e71c4b7ef1 Cleanup deprecated metadata after migration
- delete deprecated metadata
- save applied migration id per metadata holder
2024-11-04 00:11:01 +01:00
schroda
b22cec12b4 Memoize metadata hook data 2024-10-25 20:24:56 +02:00