@design.estate/dees-wcctools 1.0.100 → 1.0.101
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/dist_bundle/bundle.js +5 -6
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/wcc-dashboard.d.ts +3 -2
- package/dist_ts_web/elements/wcc-dashboard.js +7 -9
- package/dist_watch/bundle.js +224 -5
- package/dist_watch/bundle.js.map +3 -3
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/wcc-dashboard.ts +9 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design.estate/dees-wcctools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.101",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.",
|
|
6
6
|
"exports": {
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-wcctools',
|
|
6
|
-
version: '1.0.
|
|
6
|
+
version: '1.0.101',
|
|
7
7
|
description: 'A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.'
|
|
8
8
|
}
|
|
@@ -38,12 +38,8 @@ export class WccDashboard extends DeesElement {
|
|
|
38
38
|
@property()
|
|
39
39
|
public warning: string = null;
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@property()
|
|
45
|
-
public sidebarScrollY: number = 0;
|
|
46
|
-
|
|
41
|
+
private frameScrollY: number = 0;
|
|
42
|
+
private sidebarScrollY: number = 0;
|
|
47
43
|
private scrollPositionsApplied: boolean = false;
|
|
48
44
|
|
|
49
45
|
@queryAsync('wcc-frame')
|
|
@@ -222,8 +218,14 @@ export class WccDashboard extends DeesElement {
|
|
|
222
218
|
}
|
|
223
219
|
|
|
224
220
|
private scrollUpdateTimeout: NodeJS.Timeout;
|
|
221
|
+
private scrollListenersAttached: boolean = false;
|
|
225
222
|
|
|
226
223
|
public async setupScrollListeners() {
|
|
224
|
+
// Prevent duplicate listeners
|
|
225
|
+
if (this.scrollListenersAttached) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
|
|
227
229
|
const wccFrame = await this.wccFrame;
|
|
228
230
|
const wccSidebar = this.shadowRoot.querySelector('wcc-sidebar');
|
|
229
231
|
|
|
@@ -233,6 +235,7 @@ export class WccDashboard extends DeesElement {
|
|
|
233
235
|
this.frameScrollY = wccFrame.scrollTop;
|
|
234
236
|
this.debouncedScrollUpdate();
|
|
235
237
|
});
|
|
238
|
+
this.scrollListenersAttached = true;
|
|
236
239
|
}
|
|
237
240
|
|
|
238
241
|
if (wccSidebar) {
|