mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 23:06:30 +00:00
fix: refine mouse event handling for macOS window buttons to improve hover state accuracy
This commit is contained in:
@@ -41,10 +41,13 @@ var gZenCompactModeManager = {
|
||||
// Clear hover states when window state changes (minimize, maximize, etc.)
|
||||
window.addEventListener('sizemodechange', () => this._clearAllHoverStates());
|
||||
|
||||
window.addEventListener('mouseover', () => {
|
||||
const buttons = gZenVerticalTabsManager.actualWindowButtons;
|
||||
buttons.removeAttribute('zen-has-hover');
|
||||
});
|
||||
if (AppConstants.platform == 'macosx') {
|
||||
window.addEventListener('mouseover', (event) => {
|
||||
const buttons = gZenVerticalTabsManager.actualWindowButtons;
|
||||
if (event.target.closest('.titlebar-buttonbox-container') === buttons) return;
|
||||
buttons.removeAttribute('zen-has-hover');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
get preference() {
|
||||
|
Reference in New Issue
Block a user