fix vertical center

This commit is contained in:
tjs 2022-09-21 01:22:50 -04:00
parent 876270be28
commit cf7c06d9d2
1 changed files with 5 additions and 1 deletions

View File

@ -371,6 +371,10 @@ const Orderbook = () => {
setGrouping(groupSize)
}, [])
const handleScroll = useCallback(() => {
setIsScrolled(true)
}, [])
if (!serum3MarketExternal) return null
return (
@ -421,7 +425,7 @@ const Orderbook = () => {
<div
className="hide-scroll relative h-full overflow-y-scroll"
ref={orderbookElRef}
onScroll={() => setIsScrolled(true)}
onScroll={handleScroll}
>
{showSells && orderbookData?.asks?.length
? depthArray.map((_x, index) => {