Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 29f9e3f

Browse files
authored
Merge pull request #1062 from lightninglabs/disable-log-scroll-animation
Disable scroll animation on log screen
2 parents 50a496c + d409b67 commit 29f9e3f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/view/cli.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,15 @@ class LogOutput extends Component {
9090
}
9191

9292
get printLogs() {
93-
this._tScroll = setTimeout(() => this._ref.current.scrollToEnd(), 50);
93+
this.tailLogs();
9494
return this.props.logs;
9595
}
9696

97+
tailLogs() {
98+
const opt = { animated: false };
99+
this._tScroll = setTimeout(() => this._ref.current.scrollToEnd(opt), 50);
100+
}
101+
97102
render() {
98103
return (
99104
<ScrollView ref={this._ref} contentContainerStyle={logStyles.content}>

0 commit comments

Comments
 (0)