@eric-emg/symphiq-components 1.2.26 → 1.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21459,11 +21459,19 @@ class SymphiqFunnelAnalysisDashboardComponent {
|
|
|
21459
21459
|
console.log('[Scroll Debug] Attached ionScroll listener to ion-content');
|
|
21460
21460
|
// FALLBACK: Poll scroll position using requestAnimationFrame
|
|
21461
21461
|
// This ensures we catch scroll events even if neither 'scroll' nor 'ionScroll' fire
|
|
21462
|
+
// Check BOTH scrollElement.scrollTop AND ion-content's scrollTop via API
|
|
21462
21463
|
let lastScrollTop = 0;
|
|
21463
21464
|
const pollScroll = () => {
|
|
21464
|
-
|
|
21465
|
+
// Try multiple sources for scroll position
|
|
21466
|
+
const scrollElTop = scrollElement.scrollTop;
|
|
21467
|
+
const ionContentScrollTop = ionContent.scrollTop || 0;
|
|
21468
|
+
// Use whichever is non-zero
|
|
21469
|
+
const currentScrollTop = scrollElTop || ionContentScrollTop;
|
|
21465
21470
|
if (currentScrollTop !== lastScrollTop) {
|
|
21466
|
-
console.log('[Scroll Debug] Polling detected scroll change:', lastScrollTop, '->', currentScrollTop
|
|
21471
|
+
console.log('[Scroll Debug] Polling detected scroll change:', lastScrollTop, '->', currentScrollTop, {
|
|
21472
|
+
scrollElTop,
|
|
21473
|
+
ionContentScrollTop
|
|
21474
|
+
});
|
|
21467
21475
|
lastScrollTop = currentScrollTop;
|
|
21468
21476
|
this.onContainerScroll(scrollElement);
|
|
21469
21477
|
}
|