Merge pull request #2513 from crazyserver/MOBILE-3503

MOBILE-3503 tabs: Do not allow negative scrolls
main
Juan Leyva 2020-09-09 16:38:48 +02:00 committed by GitHub
commit ded6779de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
} }
const scroll = parseInt(scrollElement.scrollTop, 10); const scroll = parseInt(scrollElement.scrollTop, 10);
if (scroll == 0) { if (scroll <= 0) {
// Ensure tabbar is shown. // Ensure tabbar is shown.
this.topTabsElement.style.transform = ''; this.topTabsElement.style.transform = '';
this.originalTabsContainer.style.transform = ''; this.originalTabsContainer.style.transform = '';