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:
parent
e620c919aa
commit
a0344c6143
3 changed files with 9 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue