SnapLinkReshaping tool creates new points when dragging resegmentation handle down

I’ve encountered this bug when working with SnapLinkReshapingTool: if you drag resegmentation handle vertically down, when it passes reshaping handle it starts to produce a lot of new handle points. When debugging I saw point number exceeding 100, so only part of them is visible on the video.

Video is captured on sample page with avoidsNodes unchecked:

For some segments moving up produces the same issue, but not for all of them. I haven’t noticed anything similar when dragging horizontally.

I also wasn’t able to reproduce it with regular reshaping tool.

  • I tried mutating point in computeReshape override instead of creating a new point, but it still reproduces
  • Tried 3.0.27 and 3.1.0 versions, reproduces on both

(I submitted this as a GitHub issue before creating a forum account: SnapLinkReshaping tool creates new points when dragging resegmentation handle down · Issue #228 · NorthwoodsSoftware/GoJS · GitHub)

I have responded to the GitHub Issue.

If you want to continue the discussion here, that’s OK too.

Thanks! Let’s continue here as description is more up-to-date.

What browser and platform are you using? Do you see that behavior in other browsers or machines?

On macOS 15.6.1 it reproduces in all these browsers:

  • Chrome 142
  • Safari 26
  • Firefox 143

On Windows 11 it reproduces in Chrome 141 too.

So I don’t see any OS-specific difference here.

To reproduce it you need to drag resegmentation handle vertically down or up so it moves through reshaping handle:

Ah, I can reproduce it now. Thanks for reporting the problem. We’ll investigate.

1 Like

I believe this is fixed in the next release, 3.1.1. We’ll probably release this soon.

1 Like

3.1.1 is now available on npm and our website.

1 Like

Thanks! I can confirm that updating fixed the issue for me