The line trace is not set up correctly. It’s not setup at all, actually.
Can’t recall if that node can fetch mouse position at the time of drag cancel. It’s the Pointer Event that knows the position. So I’d probably use that instead in this case.
How close is this to what you need: