fix: buttons when in visualizer only mode
This commit is contained in:
parent
2bb06f1159
commit
9d1e4871e2
2 changed files with 22 additions and 17 deletions
25
js/ui.js
25
js/ui.js
|
|
@ -1582,29 +1582,20 @@ export class UIRenderer {
|
||||||
updateToggleButtonIcon();
|
updateToggleButtonIcon();
|
||||||
|
|
||||||
if (isUIHidden) {
|
if (isUIHidden) {
|
||||||
hideButton();
|
showButton();
|
||||||
} else {
|
} else {
|
||||||
showButton();
|
showButton();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Mouse move handler
|
|
||||||
const handleMouseMove = (e) => {
|
const handleMouseMove = (e) => {
|
||||||
const rect = overlay.getBoundingClientRect();
|
if (!isUIHidden) return;
|
||||||
const isNearTopRight = e.clientY < 100 && e.clientX > rect.width - 150;
|
const btnRect = toggleBtn.getBoundingClientRect();
|
||||||
|
const nearBtn = e.clientY < 100 && Math.abs(e.clientX - (btnRect.left + btnRect.width / 2)) < 150;
|
||||||
if (isUIHidden) {
|
if (nearBtn) {
|
||||||
if (overlay.classList.contains('is-video-mode')) {
|
showButton();
|
||||||
if (isNearTopRight) {
|
} else {
|
||||||
showButton();
|
hideButton();
|
||||||
} else {
|
|
||||||
hideButton();
|
|
||||||
}
|
|
||||||
} else if (isNearTopRight) {
|
|
||||||
showButton();
|
|
||||||
} else {
|
|
||||||
hideButton();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
14
styles.css
14
styles.css
|
|
@ -10465,6 +10465,20 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
|
||||||
order: 1;
|
order: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions {
|
||||||
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions button,
|
||||||
|
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions #close-fullscreen-cover-btn,
|
||||||
|
#fullscreen-cover-overlay.ui-hidden .fullscreen-top-actions #fs-visualizer-btn {
|
||||||
|
opacity: 1;
|
||||||
|
pointer-events: auto;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
#fullscreen-cover-overlay #toggle-ui-btn {
|
#fullscreen-cover-overlay #toggle-ui-btn {
|
||||||
top: 1.25rem;
|
top: 1.25rem;
|
||||||
left: calc(80px + 2.3rem + env(safe-area-inset-left));
|
left: calc(80px + 2.3rem + env(safe-area-inset-left));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue