fix: disable auto-scrolling to real-time on new data load
This commit is contained in:
@ -785,9 +785,12 @@ async loadNewData() {
|
|||||||
|
|
||||||
//console.log(`[NewData Load] Added ${chartData.length} new candles, total in dataset: ${this.allData.get(this.currentInterval).length}`);
|
//console.log(`[NewData Load] Added ${chartData.length} new candles, total in dataset: ${this.allData.get(this.currentInterval).length}`);
|
||||||
|
|
||||||
|
// Auto-scrolling disabled per user request
|
||||||
|
/*
|
||||||
if (atEdge) {
|
if (atEdge) {
|
||||||
this.chart.timeScale().scrollToRealTime();
|
this.chart.timeScale().scrollToRealTime();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
this.updateStats(latest);
|
this.updateStats(latest);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user