diff --git a/shared/js/ui/frames/connection-handler-list/Renderer.tsx b/shared/js/ui/frames/connection-handler-list/Renderer.tsx index 33b32928..91c4a247 100644 --- a/shared/js/ui/frames/connection-handler-list/Renderer.tsx +++ b/shared/js/ui/frames/connection-handler-list/Renderer.tsx @@ -110,11 +110,12 @@ const MoveableConnectionHandler = (props: { handlerId: string, mode: ConnectionH handlerId: props.handlerId, mouse: { x: event.pageX, y: event.pageY, xOffset: basePoint.x + refContainer.current.parentElement.scrollLeft - refContainer.current.offsetLeft } }); + detachListener(); } }; - const mouseUpListener = () => detachListener; + const mouseUpListener = () => detachListener(); const attachListener = () => { if(attached.status) { return; }