Refactors event rendering and drag-and-drop logic
Simplifies event drag handling by removing redundant clone management Optimizes single column event rendering and cleanup process Removes unnecessary logging and console output Improves event update and re-rendering strategies Enhances performance and reduces complexity in event manipulation
This commit is contained in:
parent
fba85094d7
commit
3b6f0407fb
5 changed files with 89 additions and 98 deletions
|
|
@ -180,16 +180,6 @@ export class EdgeScrollManager {
|
|||
const atTop = currentScrollTop <= 0 && vy < 0;
|
||||
const atBottom = (cloneBottom >= timeGridBottom) && vy > 0;
|
||||
|
||||
console.log('📊 Scroll check:', {
|
||||
currentScrollTop,
|
||||
scrollableHeight,
|
||||
timeGridHeight,
|
||||
cloneBottom,
|
||||
timeGridBottom,
|
||||
atTop,
|
||||
atBottom,
|
||||
vy
|
||||
});
|
||||
|
||||
if (atTop || atBottom) {
|
||||
// At boundary - stop scrolling
|
||||
|
|
|
|||
|
|
@ -244,6 +244,6 @@ export class ResizeHandleManager {
|
|||
this.pointerCaptured = false;
|
||||
}
|
||||
document.documentElement.classList.remove('swp--resizing');
|
||||
this.refreshEventCache();
|
||||
this.refreshEventCache(); //TODO: We should avoid this caching.
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue