mirror of
https://github.com/mempool/mempool.git
synced 2025-09-27 20:39:29 +02:00
Don't tweak scrollLeft if time is left to right
This commit is contained in:
@@ -194,6 +194,7 @@ export class StartComponent implements OnInit, AfterViewChecked, OnDestroy {
|
||||
applyScrollLeft(): void {
|
||||
if (this.blockchainContainer?.nativeElement?.scrollWidth) {
|
||||
let lastScrollLeft = null;
|
||||
if (!this.timeLtr) {
|
||||
while (this.scrollLeft < 0 && this.shiftPagesForward() && lastScrollLeft !== this.scrollLeft) {
|
||||
lastScrollLeft = this.scrollLeft;
|
||||
this.scrollLeft += this.pageWidth;
|
||||
@@ -203,6 +204,7 @@ export class StartComponent implements OnInit, AfterViewChecked, OnDestroy {
|
||||
lastScrollLeft = this.scrollLeft;
|
||||
this.scrollLeft -= this.pageWidth;
|
||||
}
|
||||
}
|
||||
this.blockchainContainer.nativeElement.scrollLeft = this.scrollLeft;
|
||||
}
|
||||
this.cd.detectChanges();
|
||||
|
||||
Reference in New Issue
Block a user