evui 3.3.61 → 3.3.62

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": "evui",
3
- "version": "3.3.61",
3
+ "version": "3.3.62",
4
4
  "description": "A EXEM Library project",
5
5
  "author": "exem <dev_client@ex-em.com>",
6
6
  "license": "MIT",
@@ -182,6 +182,7 @@ class EvChart {
182
182
  this.drawSeries(hitInfo);
183
183
 
184
184
  if (this.scrollbar?.x?.use || this.scrollbar?.y?.use) {
185
+ this.initScrollbar();
185
186
  this.updateScrollbarPosition();
186
187
  }
187
188
 
@@ -24,13 +24,12 @@ const module = {
24
24
  */
25
25
  initScrollbarInfo(axisOpt, dir) {
26
26
  const scrollbarOpt = this.scrollbar[dir];
27
+ const merged = defaultsDeep({}, axisOpt?.[0]?.scrollbar, AXIS_OPTION.scrollbar);
28
+ Object.keys(merged).forEach((key) => {
29
+ scrollbarOpt[key] = merged[key];
30
+ });
27
31
 
28
32
  if (!scrollbarOpt.isInit) {
29
- const merged = defaultsDeep({}, axisOpt?.[0]?.scrollbar, AXIS_OPTION.scrollbar);
30
- Object.keys(merged).forEach((key) => {
31
- scrollbarOpt[key] = merged[key];
32
- });
33
-
34
33
  scrollbarOpt.type = axisOpt?.[0]?.type;
35
34
  scrollbarOpt.range = axisOpt?.[0]?.range || null;
36
35
 
@@ -505,7 +504,7 @@ const module = {
505
504
  scrollbarYDOM.addEventListener('click', this.onScrollbarClick);
506
505
  scrollbarYDOM.addEventListener('mousedown', this.onScrollbarDown);
507
506
  scrollbarYDOM.addEventListener('mouseleave', this.onScrollbarLeave);
508
- this.overlayCanvas?.addEventListener('wheel', this.onScrollbarWheel);
507
+ this.overlayCanvas?.addEventListener('wheel', this.onScrollbarWheel, { passive: false });
509
508
  }
510
509
  },
511
510
 
@@ -620,7 +619,7 @@ const module = {
620
619
  this.scrollbar[dir] = { isInit: false };
621
620
 
622
621
  if (dir === 'y') {
623
- this.overlayCanvas?.removeEventListener('wheel', this.onScrollbarWheel, false);
622
+ this.overlayCanvas?.removeEventListener('wheel', this.onScrollbarWheel, { passive: false });
624
623
  }
625
624
  }
626
625
  },