Commit Graph
28 Commits
Author SHA1 Message Date
Well404andschroda caad353bfa Trigger library search on artist/author click (#939)
* add search func

* Fix lint issues and clean up

---------

Co-authored-by: schroda <50052685+schroda@users.noreply.github.com>
2025-05-17 19:04:16 +02:00
schroda 3f93549f34 Update to react v19 2025-04-18 21:45:00 +02:00
schroda a4e9e8f264 Introduce "useIntersectionObserver" hook 2025-02-08 19:45:41 +01:00
schroda 36cb545156 Properly detect scrollbar for mouse drag scrolling 2025-02-04 22:35:01 +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 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 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 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