We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7010fe9 commit 25eb8cdCopy full SHA for 25eb8cd
core/src/utils/status-tap.ts
@@ -15,7 +15,21 @@ export const startStatusTap = () => {
15
const contentEl = el.closest('ion-content');
16
if (contentEl) {
17
new Promise(resolve => componentOnReady(contentEl, resolve)).then(() => {
18
- writeTask(() => contentEl.scrollToTop(300));
+ writeTask(async () => {
19
+
20
+ /**
21
+ * If scrolling and user taps status bar,
22
+ * only calling scrollToTop is not enough
23
+ * as engines like WebKit will jump the
24
+ * scroll position back down and complete
25
+ * any in-progress momentum scrolling.
26
+ */
27
+ contentEl.style.setProperty('--overflow', 'hidden');
28
29
+ await contentEl.scrollToTop(300);
30
31
+ contentEl.style.removeProperty('--overflow');
32
+ });
33
});
34
}
35
0 commit comments