@salesforcedevs/dx-components 1.3.117 → 1.3.118
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.118",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"eventsourcemock": "^2.0.0",
|
|
41
41
|
"luxon": "^3.1.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b566167e7babdd2cc02f289eee115ffaedc4078e"
|
|
44
44
|
}
|
|
@@ -117,9 +117,11 @@ export default class ScrollManager extends LightningElement {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
calculateScrollPercentage(
|
|
120
|
+
calculateScrollPercentage(scrollTopOverride?: number) {
|
|
121
|
+
const scrollingElement = document.scrollingElement || document.body;
|
|
121
122
|
return (
|
|
122
|
-
(
|
|
123
|
+
((scrollTopOverride || scrollingElement.scrollTop) /
|
|
124
|
+
(scrollingElement.scrollHeight - window.innerHeight)) *
|
|
123
125
|
100
|
|
124
126
|
);
|
|
125
127
|
}
|