@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.
@@ -1068,10 +1068,12 @@ class MaxTitleBar extends DefaultTitleBar {
1068
1068
  this.$titles = document.createElement("div");
1069
1069
  this.$titles.className = this.wrapClassName("titles");
1070
1070
  this.sideEffect.addEventListener(this.$titles, "wheel", (ev) => {
1071
- ev.currentTarget.scrollBy({
1072
- left: ev.deltaY > 0 ? 250 : -250,
1073
- behavior: "smooth"
1074
- });
1071
+ if (!ev.deltaX) {
1072
+ ev.currentTarget.scrollBy({
1073
+ left: ev.deltaY > 0 ? 250 : -250,
1074
+ behavior: "smooth"
1075
+ });
1076
+ }
1075
1077
  }, { passive: false }, "max-render-wheel-titles");
1076
1078
  const $content = document.createElement("div");
1077
1079
  $content.className = this.wrapClassName("titles-content");