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:
parent
10d8a444d8
commit
4e47df2e5c
2 changed files with 61 additions and 110 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue