forked from p15670423/monkey
Autoscroll to last line in telemetry console
TODO: Don't scroll to last line if user has scrolled up
This commit is contained in:
parent
dfa9d99ae9
commit
e81c044a17
|
@ -66,6 +66,8 @@ class MapPageComponent extends AuthComponent {
|
||||||
telemetry: newTelem,
|
telemetry: newTelem,
|
||||||
telemetryLastTimestamp: res['timestamp']
|
telemetryLastTimestamp: res['timestamp']
|
||||||
});
|
});
|
||||||
|
var telemConsole = document.querySelector('div.telemetry-console');
|
||||||
|
telemConsole.scrollTop = telemConsole.scrollHeight - telemConsole.clientHeight
|
||||||
this.props.onStatusChange();
|
this.props.onStatusChange();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue