This commit is contained in:
Janus C. H. Knudsen 2025-10-13 18:03:08 +02:00
parent d259620371
commit dbbd19de13

View file

@ -182,8 +182,9 @@ export class DragDropManager {
* Optimized mouse move handler with consolidated position calculations
*/
private handleMouseMove(event: MouseEvent): void {
console.log('handleMouseMove', event)
if (this.isScrollCompensating) return;
//this.currentMouseY = event.clientY;
// this.lastMousePosition = { x: event.clientX, y: event.clientY };
@ -459,8 +460,11 @@ export class DragDropManager {
// First time scrolling - save initial positions NOW!
this.initialScrollTop = this.scrollableContent.scrollTop;
this.initialCloneTop = parseFloat(this.draggedClone.style.top || '0');
if(this.initialScrollTop == 0)
this.initialScrollTop = this.scrollableContent.scrollTop;
if(this.initialCloneTop == 0)
this.initialCloneTop = parseFloat(this.draggedClone.style.top || '0');
console.log('💾 DragDropManager: Scroll compensation started', {
initialScrollTop: this.initialScrollTop,