Open assafwo1 opened 3 years ago
public IViewerObject ObjectUnderMouseCursor
{
get
{
// >>>>>>>>>>>>>>>this function can bring a stale object<<<<<<<<<<<<<<<
var location = Mouse.GetPosition(_graphCanvas);
if (!(_objectUnderMouseDetectionLocation == location))
UpdateWithWpfHitObjectUnderMouseOnLocation(location, MyHitTestResultCallbackWithNoCallbacksToTheUser);
return GetIViewerObjectFromObjectUnderCursor(_objectUnderMouseCursor);
}
}
work around: gViewer1.ObjectUnderMouseCursor is Microsoft.Msagl.GraphViewerGdi.DNode // unreliable gViewer1.ObjectUnderMouseCursor is Microsoft.Msagl.GraphViewerGdi.DNode && gViewer1.Graph.NodeCount != 0 // reliable
reproduce steps:
issue: step 8 fails.