MOBILE-2937 tabs: Fix smooth top tabs scroll on iOS

main
Pau Ferrer Ocaña 2019-05-23 10:33:04 +02:00
parent c62237e1db
commit 4adc3afb8d
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ export class CoreTabComponent implements OnInit, OnDestroy {
// Setup tab scrolling.
setTimeout(() => {
// Workarround to solve undefined this.scroll on tab change.
// Workaround to solve undefined this.scroll on tab change.
const scroll: HTMLElement = this.content ? this.content.getScrollElement() :
this.element.querySelector('ion-content > .scroll-content');

View File

@ -438,7 +438,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
this.originalTabsContainer.style.transform = 'translateY(-' + scroll + 'px)';
this.originalTabsContainer.style.paddingBottom = this.tabBarHeight - scroll + 'px';
}
this.lastScroll = parseInt(scrollElement.scrollTop, 10);
this.lastScroll = scroll;
}
/**