This repository was archived by the owner on Sep 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
1212- Update uBlock to ` 1.52.2 `
1313
14+ ### Fixed
15+
16+ - Vertical tabs will correctly follow fullscreen state
17+
1418## 1.0.0-a.81
1519
1620### Changed
@@ -49,7 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4953- Vertical tabs: Open new tab w/ clipboard contents on space middle click
5054- The new tab & close tab buttons can now be hidden
5155
52- ### Changedv
56+ ### Changed
5357
5458- Vertical tabs: New tab button no longer has text
5559- Partial ` :has ` support is enabled (this is intended for userchrome use only)
Original file line number Diff line number Diff line change @@ -147,7 +147,16 @@ var VerticalTabs = {
147147
148148 addEventListener ( 'fullscreen' , this , true )
149149 window . addEventListener ( 'mousemove' , ( e ) => {
150- if ( ! window . fullScreen || ! this . verticalTabsEnabled ) return
150+ // We can ignore mouse move events when:
151+ // - We are not in fullscreen
152+ // - Vertical tabs are disabled (this logic is handled elsewher )
153+ // - We are in fullscreen because of a document element (e.g. a video)
154+ if (
155+ ! window . fullScreen ||
156+ ! this . verticalTabsEnabled ||
157+ document . fullscreenElement
158+ )
159+ return
151160 const tabsToolbar = this . tabsToolbar
152161 if ( ! tabsToolbar ) return
153162
@@ -243,7 +252,7 @@ var VerticalTabs = {
243252 handleEvent ( event ) {
244253 switch ( event . type ) {
245254 case 'fullscreen' :
246- if ( ! window . fullScreen ) this . fsMethods . collapse ( )
255+ if ( window . fullScreen ) this . fsMethods . collapse ( )
247256 else this . fsMethods . expand ( )
248257 break
249258 }
You can’t perform that action at this time.
0 commit comments