@eric-emg/symphiq-components 1.2.44 → 1.2.45

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.
@@ -21632,7 +21632,7 @@ class SymphiqFunnelAnalysisDashboardComponent {
21632
21632
  // Manage overall assessment loading state during view mode transitions
21633
21633
  }
21634
21634
  ngAfterViewInit() {
21635
- console.log('[DASHBOARD v4] ngAfterViewInit called', {
21635
+ console.log('[DASHBOARD v5] ngAfterViewInit called', {
21636
21636
  embedded: this.embedded(),
21637
21637
  scrollContainerId: this.scrollContainerId(),
21638
21638
  isScrolled: this.isScrolled(),
@@ -21676,18 +21676,23 @@ class SymphiqFunnelAnalysisDashboardComponent {
21676
21676
  const currentScrollTop = scrollElement.scrollTop;
21677
21677
  const scrollHeight = scrollElement.scrollHeight;
21678
21678
  const clientHeight = scrollElement.clientHeight;
21679
- console.log('[SCROLL DEBUG v2] Checking initial scroll position', {
21679
+ console.log('[SCROLL DEBUG v5] Checking initial scroll position', {
21680
21680
  scrollTop: currentScrollTop,
21681
21681
  scrollHeight,
21682
21682
  clientHeight,
21683
21683
  shouldCollapse: currentScrollTop > 50
21684
21684
  });
21685
+ // Only make a decision if we have substantial content
21686
+ if (scrollHeight < 500) {
21687
+ console.log('[SCROLL DEBUG v5] Content too small, skipping check');
21688
+ return;
21689
+ }
21685
21690
  if (currentScrollTop > 50) {
21686
- console.log('[SCROLL DEBUG v2] Collapsing header due to scroll position', { currentScrollTop });
21691
+ console.log('[SCROLL DEBUG v5] Collapsing header due to scroll position', { currentScrollTop });
21687
21692
  this.isScrolled.set(true);
21688
21693
  }
21689
21694
  else {
21690
- console.log('[SCROLL DEBUG v2] Expanding header due to scroll position', { currentScrollTop });
21695
+ console.log('[SCROLL DEBUG v5] Expanding header due to scroll position', { currentScrollTop });
21691
21696
  this.isScrolled.set(false);
21692
21697
  }
21693
21698
  };
@@ -21699,7 +21704,7 @@ class SymphiqFunnelAnalysisDashboardComponent {
21699
21704
  let scrollCheckTimeout = null;
21700
21705
  const resizeObserver = new ResizeObserver(() => {
21701
21706
  const currentHeight = scrollElement.scrollHeight;
21702
- console.log('[SCROLL DEBUG v4] Content height changed', {
21707
+ console.log('[SCROLL DEBUG v5] Content height changed', {
21703
21708
  lastHeight,
21704
21709
  currentHeight,
21705
21710
  stableCount,
@@ -21715,12 +21720,12 @@ class SymphiqFunnelAnalysisDashboardComponent {
21715
21720
  stableCount++;
21716
21721
  // Height has been stable for 2 consecutive observations
21717
21722
  if (stableCount >= 2) {
21718
- console.log('[SCROLL DEBUG v4] Content height stabilized, scheduling scroll check');
21719
- // Wait a bit for Ionic to restore scroll position
21723
+ console.log('[SCROLL DEBUG v5] Content height stabilized, scheduling scroll check');
21724
+ // Wait longer for Ionic to restore scroll position
21720
21725
  scrollCheckTimeout = setTimeout(() => {
21721
- console.log('[SCROLL DEBUG v4] Performing delayed scroll check after stabilization');
21726
+ console.log('[SCROLL DEBUG v5] Performing delayed scroll check after stabilization');
21722
21727
  checkInitialScroll();
21723
- }, 50);
21728
+ }, 150);
21724
21729
  resizeObserver.disconnect();
21725
21730
  }
21726
21731
  }
@@ -21729,9 +21734,9 @@ class SymphiqFunnelAnalysisDashboardComponent {
21729
21734
  lastHeight = currentHeight;
21730
21735
  // Schedule a check after height change
21731
21736
  scrollCheckTimeout = setTimeout(() => {
21732
- console.log('[SCROLL DEBUG v4] Checking scroll after height change');
21737
+ console.log('[SCROLL DEBUG v5] Checking scroll after height change');
21733
21738
  checkInitialScroll();
21734
- }, 50);
21739
+ }, 100);
21735
21740
  }
21736
21741
  }
21737
21742
  else {
@@ -21745,9 +21750,9 @@ class SymphiqFunnelAnalysisDashboardComponent {
21745
21750
  // Check immediately if we already have content, but allow time for scroll restoration
21746
21751
  if (scrollElement.scrollHeight >= MIN_CONTENT_HEIGHT) {
21747
21752
  scrollCheckTimeout = setTimeout(() => {
21748
- console.log('[SCROLL DEBUG v4] Initial scroll check after delay');
21753
+ console.log('[SCROLL DEBUG v5] Initial scroll check after delay');
21749
21754
  checkInitialScroll();
21750
- }, 100);
21755
+ }, 200);
21751
21756
  }
21752
21757
  // Attach scroll listeners
21753
21758
  scrollElement.addEventListener('scroll', () => this.onContainerScroll(scrollElement), { passive: true });