mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
feat(content, reorder-group, header, footer, infinite-scroll, refresher): add custom scroll target to improve compatibility with virtual scroll (#24883)
Resolves #23437
This commit is contained in:
@ -8,7 +8,7 @@ import { isPlatform } from '../../utils/platform';
|
||||
// -----------------------------
|
||||
type RefresherAnimationType = 'scale' | 'translate';
|
||||
|
||||
export const getRefresherAnimationType = (contentEl: HTMLIonContentElement): RefresherAnimationType => {
|
||||
export const getRefresherAnimationType = (contentEl: HTMLElement): RefresherAnimationType => {
|
||||
const previousSibling = contentEl.previousElementSibling;
|
||||
const hasHeader = previousSibling !== null && previousSibling.tagName === 'ION-HEADER';
|
||||
|
||||
|
Reference in New Issue
Block a user