fix(picker-column-internal): center active item when rapidly opened (#25155)

Resolves #25154
This commit is contained in:
Sean Perkins
2022-04-20 11:23:24 -04:00
committed by GitHub
parent c27d307beb
commit 8e17fa9d5f

View File

@ -106,7 +106,7 @@ export class PickerColumnInternal implements ComponentInterface {
}
}
};
new IntersectionObserver(visibleCallback, { threshold: 0.01 }).observe(this.el);
new IntersectionObserver(visibleCallback, { threshold: 0.001 }).observe(this.el);
const parentEl = this.el.closest('ion-picker-internal') as HTMLIonPickerInternalElement | null;
if (parentEl !== null) {