@netless/telebox-insider 1.0.0-alpha.36 → 1.0.0-alpha.37
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.
|
@@ -1060,10 +1060,12 @@ class MaxTitleBar extends DefaultTitleBar {
|
|
|
1060
1060
|
this.$titles = document.createElement("div");
|
|
1061
1061
|
this.$titles.className = this.wrapClassName("titles");
|
|
1062
1062
|
this.sideEffect.addEventListener(this.$titles, "wheel", (ev) => {
|
|
1063
|
-
ev.
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1063
|
+
if (!ev.deltaX) {
|
|
1064
|
+
ev.currentTarget.scrollBy({
|
|
1065
|
+
left: ev.deltaY > 0 ? 250 : -250,
|
|
1066
|
+
behavior: "smooth"
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1067
1069
|
}, { passive: false }, "max-render-wheel-titles");
|
|
1068
1070
|
const $content = document.createElement("div");
|
|
1069
1071
|
$content.className = this.wrapClassName("titles-content");
|