Hide mobile bottom bar when drawer panels are open
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8942238f9c
commit
65b4af9831
@ -129,6 +129,7 @@ class GolfGame {
|
||||
panel.classList.add('drawer-open');
|
||||
btn.classList.add('active');
|
||||
if (backdrop) backdrop.classList.add('visible');
|
||||
if (bottomBar) bottomBar.classList.add('hidden');
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -142,6 +143,8 @@ class GolfGame {
|
||||
document.querySelectorAll('.mobile-bar-btn.active').forEach(b => b.classList.remove('active'));
|
||||
const backdrop = document.getElementById('drawer-backdrop');
|
||||
if (backdrop) backdrop.classList.remove('visible');
|
||||
const bottomBar = document.getElementById('mobile-bottom-bar');
|
||||
if (bottomBar) bottomBar.classList.remove('hidden');
|
||||
}
|
||||
|
||||
initAudio() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user