schroda
ca7bd6898e
Prevent horizontal scrollbar in snackbar
2025-02-10 23:26:33 +01:00
schroda
94b4bdfa10
Reduce snackbar description length
2025-02-10 23:23:40 +01:00
schroda
a7df8eb0f4
Show image loading placeholder only when visible
...
The MUI spinner impacts the cpu usage.
While only a few of them don't matter, rendering multiple of them can impact the cpu usage.
This can be a problem in the reader in case a chapter with a lot of chapters is rendered and a continuous reading mode is being used.
In such a case the cpu usage stays increased until all pages have been loaded
2025-02-08 20:12:41 +01:00
schroda
a4e9e8f264
Introduce "useIntersectionObserver" hook
2025-02-08 19:45:41 +01:00
schroda
050094c991
Update styling of "manga open source" button
2025-02-08 16:16:32 +01:00
schroda
f633059083
Rename "CustomIconButton" to "CustomButton"
2025-02-08 16:03:37 +01:00
schroda
36cb545156
Properly detect scrollbar for mouse drag scrolling
2025-02-04 22:35:01 +01:00
schroda
d73bb31df9
Pass non "source props" to "prop source creators" in "withPropsFrom" HOC
2025-02-03 17:17:35 +01:00
schroda
a6f015d5e3
Add comment
2025-02-03 16:30:10 +01:00
schroda
6d47ab05c1
Improve mouse drag detection
...
Ignore mouse movements in directions where the element does not have a content overflow and thus, scrolling is not possible
2025-02-03 16:30:08 +01:00
schroda
8ddb259c82
Prevent tooltip on disabled button warning
2025-02-02 00:54:03 +01:00
schroda
dc9f6fc863
Fix "Uncaught ResizeObserver loop completed with undelivered notifications" error
...
Was caused due to creating a temporary div inside a resize observer callback.
By moving the temp div outside the viewport, it does not the trigger resize observer again
2025-01-31 01:54:39 +01:00
schroda
3698c19aba
Properly enable cors for images by default
2025-01-26 17:18:27 +01:00
schroda
25e3fc7808
Load images with cors allowed
...
Without allowing cors it is e.g. not possible to extract colors from an image
2025-01-26 04:20:59 +01:00
schroda
b7fc1ae6ff
Extract theme context logic into its own provider
2025-01-25 19:22:24 +01:00
schroda
480eaf5a08
Extract app page history from nav bar context
2025-01-23 13:14:58 +01:00
schroda
eeb811bf2d
Handle flex "column-reverse" for mouse drag scrolling inertia
2025-01-21 19:19:29 +01:00
schroda
18a46c0a28
Handle flex "row-reverse" for mouse drag scrolling inertia
2025-01-21 19:19:28 +01:00
schroda
7818fb450d
Fix text color of active chapter in chapter list of reader
2025-01-17 01:26:06 +01:00
schroda
a22a4bf546
Switch to "colorSchemes" from "palette" API in mui theme
...
"colorSchemes" is the preferred api starting from mui v6
2025-01-17 01:25:55 +01:00
schroda
ba52e70dbb
Improve "Updates" render performance
2025-01-12 20:28:23 +01:00
schroda
77973df0ff
Show non downloading state while partially downloaded
...
The state wasn't shown in case the chapter was partially downloaded
2025-01-12 20:28:20 +01:00
schroda
257c0c8e10
Move download status subscription to "ChapterCard"
...
Only re-render chapters whose download status has changed instead of the whole list everytime a download status change was received
2025-01-12 20:28:18 +01:00
schroda
33162e70b0
Center delete icon in mutable list setting
2025-01-08 00:34:51 +01:00
schroda
1b1ddeb334
Show "info" toast severity by default
...
The default severity of MUI is "success"
2025-01-04 16:28:16 +01:00
schroda
92892e6604
Optionally adjust progress bar position based on available size
2025-01-02 21:26:19 +01:00
schroda
af8ada9a62
Always add close button to snackbars
2025-01-02 03:04:14 +01:00
schroda
899364ac85
Use proper name for reader url chapter "index" param
...
It's not the index of the chapter but the source order, which is starting at 1 and not 0
2024-12-31 14:52:47 +01:00
schroda
8dc5ec339c
Decrease "MIN_SCROLL_AMOUNT_PX" to 1px
...
Got removed from 00170c8e4a due to rebasing and squashing...
2024-12-30 02:19:17 +01:00
schroda
00170c8e4a
Properly calculate auto scroll px amount
...
"scrollBy" and "scrollTo" require a change of at least 1px, otherwise, nothing will happen
2024-12-30 02:13:57 +01:00
schroda
e2dd5ad211
Use animation frames for auto scrolling continuous pagers
2024-12-30 02:13:56 +01:00
schroda
8eae025d8f
Use "coerceIn" util function
2024-12-29 23:41:27 +01:00
schroda
06d0f7147a
Update auto scroll direction on reader reading direction change
2024-12-29 23:41:25 +01:00
schroda
3238103ca0
Fix "rtl" detection in "useMouseDragScroll"
...
"isRTL" was set to the direction value instead of correctly to the boolean flag indicating if it is the actual rtl direction value.
This didn't cause any issues because for ltr because for ltr the result of "scrollAtT0.current[X] - delta[X])" was never less than "-maxScrollPos[X]" and for rtl it always used the expected value since "isRTL" was truthy.
2024-12-29 22:14:44 +01:00
schroda
e459e94b71
Properly invert scroll direction in "useAutomaticScrolling"
2024-12-29 22:04:46 +01:00
schroda
732f27f319
Fix "rtl" detection in "useAutomaticScrolling"
2024-12-29 22:04:21 +01:00
schroda
74d9e21c76
Abort auto scroll interval for callback mode
2024-12-29 21:42:00 +01:00
schroda
0e9d758c10
Use correct auto scroll amount for x/y direction
2024-12-27 03:12:19 +01:00
schroda
e2075a651e
Add "automatic scrolling"
2024-12-27 03:02:39 +01:00
schroda
33e184ba18
Add "auto webtoon mode" option to reader
2024-12-27 02:51:35 +01:00
schroda
3b62506452
Memoize "useBackButton" returned function
2024-12-25 23:49:17 +01:00
schroda
326e8b9881
Prevent EmptyView from taking over click events
...
E.g. in the reader it was not possible to open the overlay while the EmptyView was visible due to it blocking the readers click handling
2024-12-24 17:26:46 +01:00
schroda
2acc82289d
Add elevation to snackbar
...
Depending on the color of the background, the snackbar was hard to see, especially when using light mode
2024-12-23 02:46:56 +01:00
schroda
71373d4bd3
Remove unused space at bottom of snackbar without description
...
Get rid of unnecessary white space when there is no description to show
2024-12-23 02:41:31 +01:00
schroda
f1f660a546
Memoize "withPropsFrom" HOC
2024-12-22 00:48:22 +01:00
schroda
f5642af219
Use HOC for reader context usage
2024-12-22 00:48:18 +01:00
schroda
9e93a78a07
Use "getErrorMessage" everywhere
2024-12-21 23:27:03 +01:00
schroda
a4f1aa3234
Prevent "EmptyViewAbsoluteCentered" from overlapping content
...
Regression 1f7fe5f20e
2024-12-21 23:22:48 +01:00
schroda
28d0b470bf
Cancel confirmation dialog on backdrop click
2024-12-20 19:45:20 +01:00
schroda
1f7fe5f20e
Handle long extra messages in EmptyView
2024-12-20 19:23:56 +01:00