@eric-emg/symphiq-components 1.2.32 → 1.2.33

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.
@@ -21360,8 +21360,8 @@ class SymphiqFunnelAnalysisDashboardComponent {
21360
21360
  // Set up container scroll listener when in embedded mode
21361
21361
  if (this.embedded()) {
21362
21362
  let container = null;
21363
- console.log('[Scroll Debug v5] Embedded mode detected, setting up scroll listener');
21364
- console.log('[Scroll Debug v5] scrollContainerId:', this.scrollContainerId());
21363
+ console.log('[Scroll Debug v6] Embedded mode detected, setting up scroll listener');
21364
+ console.log('[Scroll Debug v6] scrollContainerId:', this.scrollContainerId());
21365
21365
  // If a scroll container ID is provided, use that element
21366
21366
  if (this.scrollContainerId()) {
21367
21367
  const element = document.getElementById(this.scrollContainerId());
@@ -21457,25 +21457,22 @@ 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 AND Ionic API
21460
+ // FALLBACK: Poll scroll position directly from scrollElement
21461
21461
  // This ensures we catch scroll events even if neither 'scroll' nor 'ionScroll' fire
21462
21462
  let lastScrollTop = 0;
21463
+ let pollCount = 0;
21463
21464
  const pollScroll = () => {
21464
- // Try getScrollPosition() synchronously by checking current scroll
21465
- ionContent.getScrollPosition().then((pos) => {
21466
- const currentScrollTop = pos?.scrollTop || pos?.top || pos?.y || 0;
21467
- if (currentScrollTop !== lastScrollTop && currentScrollTop > 0) {
21468
- console.log('[Scroll Debug v5] Polling detected scroll change:', lastScrollTop, '->', currentScrollTop, pos);
21469
- lastScrollTop = currentScrollTop;
21470
- this.onContainerScroll(scrollElement);
21471
- }
21472
- }).catch(() => {
21473
- // Silently ignore errors
21474
- });
21465
+ pollCount++;
21466
+ const currentScrollTop = scrollElement.scrollTop;
21467
+ if (currentScrollTop !== lastScrollTop) {
21468
+ console.log('[Scroll Debug v6] Poll #', pollCount, '- Scroll detected:', lastScrollTop, '->', currentScrollTop);
21469
+ lastScrollTop = currentScrollTop;
21470
+ this.onContainerScroll(scrollElement);
21471
+ }
21475
21472
  requestAnimationFrame(pollScroll);
21476
21473
  };
21477
21474
  requestAnimationFrame(pollScroll);
21478
- console.log('[Scroll Debug v5] Started scroll position polling using getScrollPosition()');
21475
+ console.log('[Scroll Debug v6] Started polling scrollElement.scrollTop directly');
21479
21476
  // Test if scroll event fires by manually triggering a test
21480
21477
  console.log('[Scroll Debug] Testing scroll event by programmatically scrolling to 1px...');
21481
21478
  scrollElement.scrollTop = 1;