ionic-team / ionic-team/ionic-framework

feat: scroll to top of view when pressing tab button

Offen
#22,558 3 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
package: angular package: core package: react package: vue type: feature request
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.