@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.
- package/fesm2022/symphiq-components.mjs +8 -8
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +38 -38
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1973,10 +1973,10 @@ class HeaderScrollService {
|
|
|
1973
1973
|
return;
|
|
1974
1974
|
}
|
|
1975
1975
|
const isFastScroll = absScrollDelta > 30;
|
|
1976
|
-
const
|
|
1977
|
-
const
|
|
1978
|
-
if (
|
|
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
|
|
2151
|
-
const
|
|
2152
|
-
if (
|
|
2153
|
-
this.log('Fast scroll bypass triggered', { scrollTop, absScrollDelta,
|
|
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;
|