Commit Graph
16 Commits
Author SHA1 Message Date
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 3b62506452 Memoize "useBackButton" returned function 2024-12-25 23:49:17 +01:00
schroda cff0ed5ec3 Extract app routes into constant 2024-12-11 20:25:49 +01:00
schroda 9c5382ebd7 Support RTL mode for mouse drag inertia effect
Compared to LTR were the "scrollLeft" value is >= 0, for RTL it's <= 0 which was not handled and thus on applying the inertia effect, "scrollLeft" was always set to 0 due to preventing negative values
2024-12-09 16:12:37 +01:00
schroda 206c216093 Add mouse drag scrolling to continuous pagers 2024-12-09 02:38:37 +01:00
schroda 64ac4a54fd Ignore reader when going back in app history
Navigation back through the apps back button should not open the reader again.
This is mostly a preparation for being able to open the manga page from the reader, regardless of if it was the previous page or not, in the future, in that case, the reader will be in the history stack and would be incorrectly opened through the back button
2024-10-19 16:43:15 +02:00
schroda e7e1fbbc4e Move more core logic to new folder 2024-10-06 00:16:41 +02:00
schroda c0eabf8865 Move navigation-bar files into new folder 2024-10-06 00:01:51 +02:00
schroda 23a86a77f0 Move core files into new folder 2024-10-05 22:55:08 +02:00