From 61ef16b9b75ee2a1d0facb4686677f58171ff39d Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Fri, 29 Mar 2024 18:13:08 +0800 Subject: [PATCH] fx115: avoid window dragging on non-selected tab deck (#3897) --- scss/components/_contextPane.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scss/components/_contextPane.scss b/scss/components/_contextPane.scss index 4864e35d27..2001a1a31a 100644 --- a/scss/components/_contextPane.scss +++ b/scss/components/_contextPane.scss @@ -1,5 +1,12 @@ #tabs-deck { min-width: $min-width-collections-pane + $min-width-items-pane; + + & > :not(.deck-selected) { + // Hide all sub-trees that are in the invisible tab deck + // to avoid the invisible tab decks' -moz-window-dragging to be triggered. + // Do not use display: none to avoid reflowing the layout. + -moz-subtree-hidden-only-visually: 1; + } } #zotero-context-pane {