Optimizes header event handling and all-day display
Improves performance by early-exiting header event processing when no drag operation is active. Ensures the all-day container height is re-evaluated after the mouse leaves the header area, maintaining correct layout.
This commit is contained in:
parent
3b75e1cafc
commit
1538e8c460
2 changed files with 14 additions and 8 deletions
|
|
@ -51,6 +51,12 @@ export class AllDayManager {
|
|||
console.log('🏗️ AllDayManager: Received request to ensure all-day container exists');
|
||||
this.ensureAllDayContainer();
|
||||
});
|
||||
|
||||
// Listen for header mouseleave to recalculate all-day container height
|
||||
eventBus.on('header:mouseleave', () => {
|
||||
console.log('🔄 AllDayManager: Received header:mouseleave, recalculating height');
|
||||
this.checkAndAnimateAllDayHeight();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue