Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ protected MouseManipulator(IPlotView plotView)
/// <param name="e">The <see cref="OxyInputEventArgs" /> instance containing the event data.</param>
public override void Started(OxyMouseEventArgs e)
{
this.AssignAxes(e.Position);
if (this.XAxis == null || this.YAxis == null)
this.AssignAxes(e.Position);
base.Started(e);
this.StartPosition = e.Position;
}
}
}
}
6 changes: 3 additions & 3 deletions Source/OxyPlot/PlotController/Manipulators/PlotManipulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ protected PlotManipulator(IPlotView view)
/// Gets or sets the X axis.
/// </summary>
/// <value>The X axis.</value>
protected Axis XAxis { get; set; }
public Axis XAxis { get; set; }

/// <summary>
/// Gets or sets the Y axis.
/// </summary>
/// <value>The Y axis.</value>
protected Axis YAxis { get; set; }
public Axis YAxis { get; set; }

/// <summary>
/// Transforms a point from screen coordinates to data coordinates.
Expand Down Expand Up @@ -88,4 +88,4 @@ protected void AssignAxes(ScreenPoint position)
this.YAxis = yaxis;
}
}
}
}