Implements edge scrolling functionality
Adds edge scrolling to automatically scroll the calendar when dragging an event near the edges of the view. This improves the drag-and-drop experience by allowing users to move events beyond the visible area. Removes auto-scroll logic from the event renderer, centralizing the scrolling behavior within the new edge scroll manager.
This commit is contained in:
parent
40b19a092c
commit
8df1f6c4f1
5 changed files with 139 additions and 25 deletions
|
|
@ -97,19 +97,6 @@ export class DateEventRenderer implements EventRendererStrategy {
|
|||
swpEvent.updatePosition(columnDate, payload.snappedY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle drag auto-scroll event
|
||||
*/
|
||||
public handleDragAutoScroll(eventId: string, snappedY: number): void {
|
||||
if (!this.draggedClone) return;
|
||||
|
||||
// Update position directly using the calculated snapped position
|
||||
this.draggedClone.style.top = snappedY + 'px';
|
||||
|
||||
// Update timestamp display
|
||||
//this.updateCloneTimestamp(this.draggedClone, snappedY); //TODO: Commented as, we need to move all this scroll logic til scroll manager away from eventrenderer
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle column change during drag
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue