Steps to reproduce
Open a vault with multiple tabs (i.e., there are multiple tabs retained from the last session, and they still exist when opened this time).
At this point, the middle mouse button cannot close these (unactivated) tabs.
Did you follow the troubleshooting guide? [Y/N]
YES
Since the sandbox repository seems unable to retain the “last opened” tabs, I conducted the test in a repository with restricted mode enabled.
Here is a GIF of the testing process:
The yellow highlight represents the left mouse button, and the cyan highlight represents the middle mouse button.
Expected result
Pressing the middle mouse button on a tab should close the corresponding tab—regardless of whether it has been activated.
Actual result
These “unactivated” tabs do not close.
Environment
SYSTEM INFO:
Obsidian version: v1.7.4
Installer version: v1.6.7
Operating system: Windows 11 Pro 10.0.22635
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: Minimal v6.1.17
Snippets enabled: 13
Restricted mode: on
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Additional information
My Obsidian version is 1.7.4, and I suspect this issue is related to the lazy loading mechanism introduced in version 1.7. These “retained tabs” have not been loaded, and therefore do not respond to the middle mouse button close request?
Unfortunately, I cannot see any output information in the developer tools to confirm this.