wip
This commit is contained in:
parent
d259620371
commit
dbbd19de13
1 changed files with 7 additions and 3 deletions
|
|
@ -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,9 +460,12 @@ export class DragDropManager {
|
|||
|
||||
// First time scrolling - save initial positions NOW!
|
||||
|
||||
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,
|
||||
initialCloneTop: this.initialCloneTop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue