This repository was archived by the owner on Sep 30, 2024. It is now read-only.
File tree 2 files changed +16
-3
lines changed
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
11
11
12
12
- Update uBlock to ` 1.52.2 `
13
13
14
+ ### Fixed
15
+
16
+ - Vertical tabs will correctly follow fullscreen state
17
+
14
18
## 1.0.0-a.81
15
19
16
20
### Changed
@@ -49,7 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
49
53
- Vertical tabs: Open new tab w/ clipboard contents on space middle click
50
54
- The new tab & close tab buttons can now be hidden
51
55
52
- ### Changedv
56
+ ### Changed
53
57
54
58
- Vertical tabs: New tab button no longer has text
55
59
- 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 = {
147
147
148
148
addEventListener ( 'fullscreen' , this , true )
149
149
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
151
160
const tabsToolbar = this . tabsToolbar
152
161
if ( ! tabsToolbar ) return
153
162
@@ -243,7 +252,7 @@ var VerticalTabs = {
243
252
handleEvent ( event ) {
244
253
switch ( event . type ) {
245
254
case 'fullscreen' :
246
- if ( ! window . fullScreen ) this . fsMethods . collapse ( )
255
+ if ( window . fullScreen ) this . fsMethods . collapse ( )
247
256
else this . fsMethods . expand ( )
248
257
break
249
258
}
You can’t perform that action at this time.
0 commit comments