VisConnect icon indicating copy to clipboard operation
VisConnect copied to clipboard

Mouse position of interaction is not synchronized correctly

Open byebb opened this issue 4 years ago • 2 comments

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:

image

byebb avatar Oct 28 '20 12:10 byebb

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.

michaschwab avatar Oct 28 '20 14:10 michaschwab

I don't need it immediately. It's just that I stumbled over it while using the demo. :)

byebb avatar Oct 28 '20 21:10 byebb