graphstream / gs-core

Graphstream core
http://graphstream-project.org/
Other
398 stars 109 forks source link

Mouseclick at wrong position in embedded javafx gui #335

Closed N4tus closed 4 years ago

N4tus commented 4 years ago

I am viewing a graph in javafx using the FxViewer to embed the canvas in an existing gui. However for an ui event (a mouse press event for example) on a node to be registered i need to click where the node would've been if the canvas was rendered at top-left 0-0.

hichbra commented 4 years ago

Hi!

This issue is related to https://github.com/graphstream/gs-ui-javafx/issues/21 I think. Can you try it ?

N4tus commented 4 years ago

Thank you for your fast response. That was indeed the problem and it works now like intended.