diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /browser/base/content/tabbrowser-tabs.js | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/base/content/tabbrowser-tabs.js')
-rw-r--r-- | browser/base/content/tabbrowser-tabs.js | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/browser/base/content/tabbrowser-tabs.js b/browser/base/content/tabbrowser-tabs.js index 4733e6d0b6..36b6aeb390 100644 --- a/browser/base/content/tabbrowser-tabs.js +++ b/browser/base/content/tabbrowser-tabs.js @@ -187,6 +187,26 @@ this.updateTabIndicatorAttr(event.target); } + on_TabHoverStart(event) { + if (this._showCardPreviews) { + const previewContainer = document.getElementById( + "tabbrowser-tab-preview" + ); + previewContainer.tab = event.target; + } + } + + on_TabHoverEnd(event) { + if (this._showCardPreviews) { + const previewContainer = document.getElementById( + "tabbrowser-tab-preview" + ); + if (previewContainer.tab === event.target) { + previewContainer.tab = null; + } + } + } + on_transitionend(event) { if (event.propertyName != "max-width") { return; @@ -1818,22 +1838,6 @@ handleEvent(aEvent) { switch (aEvent.type) { - case "TabHoverStart": - if (this._showCardPreviews) { - const previewContainer = document.getElementById( - "tabbrowser-tab-preview" - ); - previewContainer.tab = aEvent.target; - } - break; - case "TabHoverEnd": - if (this._showCardPreviews) { - const previewContainer = document.getElementById( - "tabbrowser-tab-preview" - ); - previewContainer.tab = null; - } - break; case "mouseout": // If the "related target" (the node to which the pointer went) is not // a child of the current document, the mouse just left the window. |