@eric-emg/symphiq-components 1.2.514 → 1.2.516

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.
@@ -1973,10 +1973,10 @@ class HeaderScrollService {
1973
1973
  return;
1974
1974
  }
1975
1975
  const isFastScroll = absScrollDelta > 30;
1976
- const isWellPastThreshold = !currentState && scrollPosition > this.config.collapseThreshold * 2;
1977
- const fastScrollBypass = isFastScroll && isWellPastThreshold && desiredState;
1978
- if (fastScrollBypass) {
1979
- this.log('Fast scroll bypass triggered', { scrollPosition, absScrollDelta });
1976
+ const fastCollapseBypass = isFastScroll && !currentState && scrollPosition > this.config.collapseThreshold * 2 && desiredState;
1977
+ const fastExpandBypass = isFastScroll && currentState && scrollDelta < -30 && scrollPosition < 50 && !desiredState;
1978
+ if (fastCollapseBypass || fastExpandBypass) {
1979
+ this.log('Fast scroll bypass triggered', { scrollPosition, absScrollDelta, type: fastCollapseBypass ? 'collapse' : 'expand' });
1980
1980
  if (this.scrollTimeout) {
1981
1981
  clearTimeout(this.scrollTimeout);
1982
1982
  this.scrollTimeout = null;
@@ -2147,10 +2147,10 @@ class HeaderScrollService {
2147
2147
  return;
2148
2148
  }
2149
2149
  const isFastScroll = absScrollDelta > 30;
2150
- const isWellPastThreshold = !currentState && scrollTop > collapseThreshold * 2;
2151
- const fastScrollBypass = isFastScroll && isWellPastThreshold && desiredState;
2152
- if (fastScrollBypass) {
2153
- this.log('Fast scroll bypass triggered', { scrollTop, absScrollDelta, collapseThreshold });
2150
+ const fastCollapseBypass = isFastScroll && !currentState && scrollTop > collapseThreshold * 2 && desiredState;
2151
+ const fastExpandBypass = isFastScroll && currentState && scrollDelta < -30 && scrollTop < 50 && !desiredState;
2152
+ if (fastCollapseBypass || fastExpandBypass) {
2153
+ this.log('Fast scroll bypass triggered', { scrollTop, absScrollDelta, type: fastCollapseBypass ? 'collapse' : 'expand' });
2154
2154
  if (this.scrollTimeout) {
2155
2155
  clearTimeout(this.scrollTimeout);
2156
2156
  this.scrollTimeout = null;