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:
parent
cacd312936
commit
026d83eb32
6 changed files with 314 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue