@eric-emg/symphiq-components 1.2.25 → 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.
|
@@ -21457,6 +21457,28 @@ class SymphiqFunnelAnalysisDashboardComponent {
|
|
|
21457
21457
|
this.onContainerScroll(scrollElement);
|
|
21458
21458
|
}, { passive: true });
|
|
21459
21459
|
console.log('[Scroll Debug] Attached ionScroll listener to ion-content');
|
|
21460
|
+
// FALLBACK: Poll scroll position using requestAnimationFrame
|
|
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
|
|
21463
|
+
let lastScrollTop = 0;
|
|
21464
|
+
const pollScroll = () => {
|
|
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;
|
|
21470
|
+
if (currentScrollTop !== lastScrollTop) {
|
|
21471
|
+
console.log('[Scroll Debug] Polling detected scroll change:', lastScrollTop, '->', currentScrollTop, {
|
|
21472
|
+
scrollElTop,
|
|
21473
|
+
ionContentScrollTop
|
|
21474
|
+
});
|
|
21475
|
+
lastScrollTop = currentScrollTop;
|
|
21476
|
+
this.onContainerScroll(scrollElement);
|
|
21477
|
+
}
|
|
21478
|
+
requestAnimationFrame(pollScroll);
|
|
21479
|
+
};
|
|
21480
|
+
requestAnimationFrame(pollScroll);
|
|
21481
|
+
console.log('[Scroll Debug] Started scroll position polling');
|
|
21460
21482
|
// Test if scroll event fires by manually triggering a test
|
|
21461
21483
|
console.log('[Scroll Debug] Testing scroll event by programmatically scrolling to 1px...');
|
|
21462
21484
|
scrollElement.scrollTop = 1;
|