MOBILE-3503 tabs: Do not allow negative scrolls

main
Pau Ferrer Ocaña 2020-09-04 17:26:20 +02:00
parent bdbba2885e
commit fb7b473260
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';