@salesforcedevs/dx-components 1.3.116 → 1.3.117
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.117",
|
|
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": "a5b8b2dee68148aa7c42708beda3a4cf7e7806f7"
|
|
44
44
|
}
|
|
@@ -91,15 +91,13 @@ export default class ScrollManager extends LightningElement {
|
|
|
91
91
|
if (!globalThis.singletonScrollManagerConnected) {
|
|
92
92
|
globalThis.singletonScrollManagerConnected = true;
|
|
93
93
|
window.addEventListener(RESTORE_SCROLL_EVENT_NAME, restoreScroll);
|
|
94
|
-
|
|
95
|
-
document.body.addEventListener("scroll", this.manualScrollListener);
|
|
96
94
|
window.addEventListener("scroll", this.onWindowScroll);
|
|
97
95
|
} else {
|
|
98
96
|
console.error(REDUNDANT_INSTANCE_ERROR_MESSAGE);
|
|
99
97
|
}
|
|
100
98
|
}
|
|
101
99
|
|
|
102
|
-
onWindowScroll() {
|
|
100
|
+
onWindowScroll = () => {
|
|
103
101
|
const html = document.querySelector("html");
|
|
104
102
|
if (html) {
|
|
105
103
|
html.setAttribute(
|
|
@@ -109,7 +107,9 @@ export default class ScrollManager extends LightningElement {
|
|
|
109
107
|
}`
|
|
110
108
|
);
|
|
111
109
|
}
|
|
112
|
-
|
|
110
|
+
|
|
111
|
+
this.updateScrollState();
|
|
112
|
+
};
|
|
113
113
|
|
|
114
114
|
sendGtmScrollThresholdEvent(threshold: "25" | "50" | "75" | "100") {
|
|
115
115
|
track(document.body, "custEv_scroll", {
|
|
@@ -174,7 +174,7 @@ export default class ScrollManager extends LightningElement {
|
|
|
174
174
|
);
|
|
175
175
|
});
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
updateScrollState = () => {
|
|
178
178
|
if (this.scrollCount < 5) {
|
|
179
179
|
this.scrollCount++;
|
|
180
180
|
} else {
|