Improves drag event handling and scrolling

Refactors drag and drop event handling for smoother updates.

Tracks the current mouse position during drag operations to improve the accuracy of position updates.

Adjusts edge scrolling behavior.
This commit is contained in:
Janus C. H. Knudsen 2025-10-12 23:17:22 +02:00
parent e620c919aa
commit a0344c6143
3 changed files with 9 additions and 6 deletions

View file

@ -91,7 +91,7 @@ export class DateEventRenderer implements EventRendererStrategy {
*/
public handleDragMove(payload: DragMoveEventPayload): void {
// Delegate to SwpEventElement to update position and timestamps
console.log('handleDragMove', payload)
const swpEvent = payload.draggedClone as SwpEventElement;
const columnDate = this.dateService.parseISO(payload.columnBounds!!.date);
swpEvent.updatePosition(columnDate, payload.snappedY);