Skip to content

Commit

Permalink
Enable mouse drag scrolling for all reading modes
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed Jan 10, 2025
1 parent afc3a23 commit 757cf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/reader/components/viewer/ReaderViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const BaseReaderViewer = forwardRef(
useImperativeHandle(ref, () => scrollElementRef.current!);

const isContinuousReadingModeActive = isContinuousReadingMode(readingMode);
const isDragging = useMouseDragScroll(isContinuousReadingModeActive ? scrollElementRef : undefined);
const isDragging = useMouseDragScroll(scrollElementRef);

const automaticScrolling = useReaderAutoScrollContext();
useEffect(() => automaticScrolling.setScrollRef(scrollElementRef), []);
Expand Down

0 comments on commit 757cf59

Please sign in to comment.