VisConnect
VisConnect copied to clipboard
Mouse position of interaction is not synchronized correctly
I tested the Mouse Events Demo.
The horizontal position is not correct when the resolution of the screen is not the same. See the following example. If one person sets a point at 23.61, then the other user gets the point at 49.61 which does not preserve the relativity to all other points:
Thank you for pointing out this issue! This is a tricky problem, as the creation of nodes in this example uses absolute mouse positions, and VisConnect can not automatically know how the visualization scales the content. In this example, there is some fixed width for axes etc, and then the rest of the width seems to scale to fit the window width. I think the way to go here would be to allow visualizations to tell VisConnect in some way, e.g. a callback function, how its content scales, and then VisConnect could transform the pointer positions. I will take a look at this.
I don't need it immediately. It's just that I stumbled over it while using the demo. :)