Merge pull request #5355 from mempool/natsoni/fix-blockchain-scroll

Fix unwanted blockchain scroll on screen resize
This commit is contained in:
softsimon 2024-07-24 11:44:36 -07:00 committed by GitHub
commit bc498733fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -234,7 +234,7 @@ export class StartComponent implements OnInit, AfterViewChecked, OnDestroy {
this.minScrollWidth = 40 + (8 * this.blockWidth) + (this.pageWidth * 2);
if (firstVisibleBlock != null) {
this.scrollToBlock(firstVisibleBlock, offset);
this.scrollToBlock(firstVisibleBlock, offset + (this.isMobile ? this.blockWidth : 0));
} else {
this.updatePages();
}