Properly update chapter list window scroll
Once the window scroller was set, resizing the window to increase the width did not remove the window scroller again
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
import { RefObject, useLayoutEffect, useState } from 'react';
|
||||
|
||||
export const useResizeObserver = (
|
||||
ref: RefObject<HTMLElement> | HTMLElement | undefined,
|
||||
ref: RefObject<HTMLElement> | HTMLElement | undefined | null,
|
||||
callback: ResizeObserverCallback,
|
||||
): (() => void) => {
|
||||
const [disconnect, setDisconnect] = useState<() => void>(() => {});
|
||||
|
||||
Reference in New Issue
Block a user