forked from ZenBrowserMirrors/zen-desktop
21 lines
1.1 KiB
C++
21 lines
1.1 KiB
C++
diff --git a/toolkit/content/widgets/arrowscrollbox.js b/toolkit/content/widgets/arrowscrollbox.js
|
|
index e2000d0f0c33e0e497e79dd206e195235bc5094e..ac69cb75d2be93a1f72fb61bea200d3dcbcdd77f 100644
|
|
--- a/toolkit/content/widgets/arrowscrollbox.js
|
|
+++ b/toolkit/content/widgets/arrowscrollbox.js
|
|
@@ -98,6 +98,7 @@
|
|
|
|
let slot = this.shadowRoot.querySelector("slot");
|
|
let overflowObserver = new ResizeObserver(_ => {
|
|
+ if (this.id == 'tabbrowser-arrowscrollbox') return; // zen: do NOT underflow/overflow on tabbrowser-arrowscrollbox
|
|
let contentSize =
|
|
slot.getBoundingClientRect()[this.#verticalMode ? "height" : "width"];
|
|
// NOTE(emilio): This should be contentSize > scrollClientSize, but due
|
|
@@ -642,7 +643,7 @@
|
|
|
|
on_wheel(event) {
|
|
// Don't consume the event if we can't scroll.
|
|
- if (!this.overflowing) {
|
|
+ if (!this.overflowing || this.id === 'tabbrowser-arrowscrollbox' || ((event.deltaY == 0 || gZenWorkspaces._swipeState?.isGestureActive) && this.classList.contains('workspace-arrowscrollbox'))) {
|
|
return;
|
|
}
|
|
|