@eric-emg/symphiq-components 1.2.28 → 1.2.29

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 v3] Embedded mode detected, setting up scroll listener');
21364
- console.log('[Scroll Debug v3] scrollContainerId:', this.scrollContainerId());
21363
+ console.log('[Scroll Debug v4] Embedded mode detected, setting up scroll listener');
21364
+ console.log('[Scroll Debug v4] 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());
@@ -21464,6 +21464,7 @@ class SymphiqFunnelAnalysisDashboardComponent {
21464
21464
  // Try multiple sources for scroll position
21465
21465
  const scrollElTop = scrollElement.scrollTop;
21466
21466
  const ionContentScrollTop = ionContent.scrollTop || 0;
21467
+ const ionContentScrollY = ionContent.scrollY || 0;
21467
21468
  // Also try getScrollElement() again in case it returns live data
21468
21469
  let apiScrollTop = 0;
21469
21470
  try {
@@ -21473,13 +21474,26 @@ class SymphiqFunnelAnalysisDashboardComponent {
21473
21474
  catch (e) {
21474
21475
  // Ignore errors
21475
21476
  }
21477
+ // Also try Ionic's getScrollPosition() method
21478
+ let ionicScrollY = 0;
21479
+ try {
21480
+ if (typeof ionContent.getScrollPosition === 'function') {
21481
+ const pos = await ionContent.getScrollPosition();
21482
+ ionicScrollY = pos?.scrollTop || pos?.top || 0;
21483
+ }
21484
+ }
21485
+ catch (e) {
21486
+ // Ignore errors
21487
+ }
21476
21488
  // Use whichever is non-zero
21477
- const currentScrollTop = scrollElTop || ionContentScrollTop || apiScrollTop;
21489
+ const currentScrollTop = scrollElTop || ionContentScrollTop || ionContentScrollY || apiScrollTop || ionicScrollY;
21478
21490
  if (currentScrollTop !== lastScrollTop) {
21479
- console.log('[Scroll Debug v3] Polling detected scroll change:', lastScrollTop, '->', currentScrollTop, {
21491
+ console.log('[Scroll Debug v4] Polling detected scroll change:', lastScrollTop, '->', currentScrollTop, {
21480
21492
  scrollElTop,
21481
21493
  ionContentScrollTop,
21482
- apiScrollTop
21494
+ ionContentScrollY,
21495
+ apiScrollTop,
21496
+ ionicScrollY
21483
21497
  });
21484
21498
  lastScrollTop = currentScrollTop;
21485
21499
  this.onContainerScroll(scrollElement);
@@ -21487,7 +21501,7 @@ class SymphiqFunnelAnalysisDashboardComponent {
21487
21501
  requestAnimationFrame(pollScroll);
21488
21502
  };
21489
21503
  requestAnimationFrame(pollScroll);
21490
- console.log('[Scroll Debug v3] Started scroll position polling');
21504
+ console.log('[Scroll Debug v4] Started scroll position polling');
21491
21505
  // Test if scroll event fires by manually triggering a test
21492
21506
  console.log('[Scroll Debug] Testing scroll event by programmatically scrolling to 1px...');
21493
21507
  scrollElement.scrollTop = 1;