ionic-team / ionic-team/ionic-framework

feat: scroll to top of view when pressing tab button

オープン
#22,558 コメント 3 件 リアクション 6 件 担当者 0 名 GitHub で見る
package: angular package: core package: react package: vue type: feature request
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

# Feature Request

**Ionic version:**

[x] **5.x**

**Describe the Feature Request**

Many applications scroll to top, when content inside tab page is scrolled and active tab button is pressed again (e.g. YouTube).
It would be great, if ionic could provide this feature out of the box.

![RPReplay_Final1606233680](https://user-images.githubusercontent.com/26873275/100120005-c5d52c00-2e77-11eb-8561-7bc348e09774.gif)

**Describe Preferred Solution**

Ionic already has a global config option `statusTap: boolean`, which enables scrollTop() when status bar is pressed.
Extend global configs by `tabTap: boolean`, to provide this functionality also to tab button.

**Describe Alternatives**

currently you have to code this by your own.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。