ionic-team / ionic-team/ionic-framework

feat: scroll to top of view when pressing tab button

Đang mở
#22,558 3 bình luận 6 reaction 0 người được giao Xem trên GitHub
package: angular package: core package: react package: vue type: feature request
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

# 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.