| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -643,11 +643,13 @@ export class TabView extends TabViewBase { | |||
| 643 | 643 | } | |
| 644 | 644 | ||
| 645 | 645 | [selectedIndexProperty.setNative](value: number) { | |
| 646 | + const smoothScroll = this.androidTabsPosition === "top"; | ||
| 647 | + | ||
| 646 | 648 | if (traceEnabled()) { | |
| 647 | - traceWrite("TabView this._viewPager.setCurrentItem(" + value + ", true);", traceCategory); | ||
| 649 | + traceWrite("TabView this._viewPager.setCurrentItem(" + value + ", " + smoothScroll + ");", traceCategory); | ||
| 648 | 650 | } | |
| 649 | 651 | ||
| 650 | - this._viewPager.setCurrentItem(value, true); | ||
| 652 | + this._viewPager.setCurrentItem(value, smoothScroll); | ||
| 651 | 653 | } | |
| 652 | 654 | ||
| 653 | 655 | [itemsProperty.getDefault](): TabViewItem[] { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments