ionic-team / ionic-team/ionic-framework
feat: scroll to top of view when pressing tab button
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 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.

**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.
贡献指南
调研方向
Start by tracing the existing global `statusTap` configuration and its `scrollTop()` behavior, then inspect how tab buttons handle presses when their tab is already active. Done means an opt-in `tabTap` configuration is available and pressing the active tab scrolls its content to the top, with behavior matching the request.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100