remove: smooth scroll from orders
This commit is contained in:
parent
7c925df103
commit
91c0a0c55c
1 changed files with 2 additions and 8 deletions
|
|
@ -162,15 +162,9 @@ const OrdersPool = (props: OrdersPoolProps) => {
|
|||
parent.clientHeight / 2 +
|
||||
childRect.height / 2;
|
||||
|
||||
parent.scrollTo({
|
||||
top: scrollTop,
|
||||
behavior: 'smooth',
|
||||
});
|
||||
parent.scrollTop = Math.round(scrollTop);
|
||||
} else {
|
||||
parent.scrollTo({
|
||||
top: 0,
|
||||
behavior: 'smooth',
|
||||
});
|
||||
parent.scrollTop = 0;
|
||||
}
|
||||
}, [ordersLoading, filteredOrdersHistory.length, ordersBuySell.code]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue