mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 01:26:48 +03:00
restored scroll functionality to default
This commit is contained in:
parent
a19d7d6e9d
commit
2b2724c34f
|
@ -61,8 +61,7 @@ export default class LogMonitor {
|
|||
} else if (
|
||||
this.props.stagedActions.length < nextProps.stagedActions.length
|
||||
) {
|
||||
const scrollableNode = node.parentElement;
|
||||
const { scrollTop, offsetHeight, scrollHeight } = scrollableNode;
|
||||
const { scrollTop, offsetHeight, scrollHeight } = node;
|
||||
|
||||
this.scrollDown = Math.abs(
|
||||
scrollHeight - (scrollTop + offsetHeight)
|
||||
|
@ -79,9 +78,8 @@ export default class LogMonitor {
|
|||
}
|
||||
|
||||
if (this.scrollDown) {
|
||||
const scrollableNode = node.parentElement;
|
||||
const { offsetHeight, scrollHeight } = scrollableNode;
|
||||
scrollableNode.scrollTop = scrollHeight - offsetHeight;
|
||||
const { offsetHeight, scrollHeight } = node;
|
||||
node.scrollTop = scrollHeight - offsetHeight;
|
||||
this.scrollDown = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user