Fixed server connection tab move handler
parent
a572493d57
commit
8824525d38
|
@ -110,11 +110,12 @@ const MoveableConnectionHandler = (props: { handlerId: string, mode: ConnectionH
|
||||||
handlerId: props.handlerId,
|
handlerId: props.handlerId,
|
||||||
mouse: { x: event.pageX, y: event.pageY, xOffset: basePoint.x + refContainer.current.parentElement.scrollLeft - refContainer.current.offsetLeft }
|
mouse: { x: event.pageX, y: event.pageY, xOffset: basePoint.x + refContainer.current.parentElement.scrollLeft - refContainer.current.offsetLeft }
|
||||||
});
|
});
|
||||||
|
|
||||||
detachListener();
|
detachListener();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const mouseUpListener = () => detachListener;
|
const mouseUpListener = () => detachListener();
|
||||||
|
|
||||||
const attachListener = () => {
|
const attachListener = () => {
|
||||||
if(attached.status) { return; }
|
if(attached.status) { return; }
|
||||||
|
|
Loading…
Reference in New Issue