Adds event resizing functionality to calendar

Introduces ResizeManager to handle dynamic event duration updates

Implements smooth height animation and grid-based snapping
Adds resize event tracking and timestamp display during resizing
Integrates resize handle creation and pointer event management
This commit is contained in:
Janus C. H. Knudsen 2025-12-10 22:16:40 +01:00
parent cacd312936
commit 026d83eb32
6 changed files with 314 additions and 1 deletions

View file

@ -75,6 +75,10 @@ export class DragDropManager {
private handlePointerDown = (e: PointerEvent): void => {
const target = e.target as HTMLElement;
// Ignore if clicking on resize handle
if (target.closest('swp-resize-handle')) return;
const eventElement = target.closest('swp-event') as HTMLElement;
if (!eventElement) return;