From 2123d5fdc47cf6e1986244dedfd121d18b65c36e Mon Sep 17 00:00:00 2001 From: HardiReady Date: Wed, 21 Feb 2018 19:37:30 +0100 Subject: [PATCH 1/2] remove general auto top scroll --- static/src/app/app.component.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/static/src/app/app.component.ts b/static/src/app/app.component.ts index 9df1f2f..7d4cd99 100644 --- a/static/src/app/app.component.ts +++ b/static/src/app/app.component.ts @@ -30,9 +30,6 @@ export class AppComponent { } if (event instanceof NavigationEnd) { this.loading = false; - if (router.url.includes(RouteConfig.overviewPath)) { - window.scrollTo({left: 0, top: 0, behavior: 'smooth'}); - } } }); } From 0d4a8fff1f455a73c4bfcb2d3aa7a02495a7428f Mon Sep 17 00:00:00 2001 From: HardiReady Date: Wed, 21 Feb 2018 21:03:05 +0100 Subject: [PATCH 2/2] remove war detail tab switch scroll top --- static/src/app/statistic/war-detail/war-detail.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/static/src/app/statistic/war-detail/war-detail.component.ts b/static/src/app/statistic/war-detail/war-detail.component.ts index 98e9ac8..d6389c7 100644 --- a/static/src/app/statistic/war-detail/war-detail.component.ts +++ b/static/src/app/statistic/war-detail/war-detail.component.ts @@ -66,7 +66,6 @@ export class WarDetailComponent { this.fractionStatsInitialized = true; }); } - window.scrollTo({left: 0, top: 0, behavior: 'smooth'}); } /**