Refactor edge scroll management for drag operations

Simplifies EdgeScrollManager implementation with more focused and efficient auto-scrolling logic

Removes unnecessary complexity and scroll tracking
Optimizes scroll velocity calculation and boundary detection
Improves performance by using requestAnimationFrame for smooth scrolling
This commit is contained in:
Janus C. H. Knudsen 2025-12-10 19:22:13 +01:00
parent 10d8a444d8
commit 4e47df2e5c
2 changed files with 61 additions and 110 deletions

View file

@ -180,9 +180,6 @@ export class DragDropManager {
const columnRect = columnElement.getBoundingClientRect();
const targetY = e.clientY - columnRect.top - mouseOffset.y;
// Reset scroll compensation
this.scrollDeltaY = 0;
// Initialize drag state
this.dragState = {
eventId,