Fixed auto scroll in mitmweb (#6038)
Co-authored-by: y52en <email@example.com>
This commit is contained in:
parent
04d9249ab1
commit
e0b6734ed5
|
@ -2,7 +2,8 @@ import React from "react";
|
|||
import ReactDOM from "react-dom";
|
||||
|
||||
const symShouldStick = Symbol("shouldStick") as any;
|
||||
const isAtBottom = (v) => v.scrollTop + v.clientHeight === v.scrollHeight;
|
||||
const isAtBottom = (v) =>
|
||||
Math.round(v.scrollTop) + v.clientHeight === v.scrollHeight;
|
||||
|
||||
export default (Component) =>
|
||||
Object.assign(
|
||||
|
|
Loading…
Reference in New Issue