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/dist/evui.common.js +15 -8
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +15 -8
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/chart.core.js +1 -0
- package/src/components/chart/plugins/plugins.scrollbar.js +6 -7
package/package.json
CHANGED
|
@@ -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
|
},
|