From fb7b473260afc1c572b00c73d5126d78d2fc9ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 4 Sep 2020 17:26:20 +0200 Subject: [PATCH] MOBILE-3503 tabs: Do not allow negative scrolls --- src/components/tabs/tabs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabs/tabs.ts b/src/components/tabs/tabs.ts index 65cdb3bf2..937ee082c 100644 --- a/src/components/tabs/tabs.ts +++ b/src/components/tabs/tabs.ts @@ -488,7 +488,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe } const scroll = parseInt(scrollElement.scrollTop, 10); - if (scroll == 0) { + if (scroll <= 0) { // Ensure tabbar is shown. this.topTabsElement.style.transform = ''; this.originalTabsContainer.style.transform = '';