Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

autoScroll in DocumentScroll jumps other blocks into view

$
0
0

@maciej wrote:

Hi,

I have a canvas which is set to go.Diagram.DocumentScroll and I have autoScroll enabled. I notice that when I have a single block far away from other blocks, and I autoScroll to those other blocks, the viewport ‘pops’ in a way in which the non-dragged blocks are centered into view and it seems like the dragged block just jumped a big distance.

To replicate this, you can go to https://gojs.net/latest/samples/scrollModes.html and drag one of the blocks down to a point where none of the other blocks are visible. Release the block down at this position, and then drag that block back to the top of the viewport so it is autoscrolling up. As soon as this happens, the viewport jumps to center the non-moved blocks, and it looks like the dragged block jumped a huge amount.

This does not happen when setting scroll mode to InfiniteScroll, but having the scrollbar visible is important for me so I do not want to switch scroll modes.

Is there a good way to make the diagram scroll back up without this jump effect?

Thanks.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles