Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/09 20:34:26 (16 years ago)
Author:
bspisic
Message:

currentMousePos removed (#664)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs

    r2014 r2015  
    3232    private readonly TooltipListener toolTipListener;
    3333    private readonly ToolTip valueToolTip;
    34     private Point currentMousePos;
    3534
    3635    /// <summary>
     
    6160      toolTipListener.ShowToolTip += ShowToolTip;
    6261      mouseEventListener = toolTipListener;
    63       currentMousePos = new Point(0, 0);
    6462
    6563      this.ResizeRedraw = true;
     
    645643        valueToolTip.Hide(this);
    646644        mouseEventListener = null;
    647         this.contextMenu.Show(PointToScreen(e.Location));
     645        contextMenu.Show(PointToScreen(e.Location));
    648646      } else if (e.Button == MouseButtons.Left) {
    649647        if (ModifierKeys == Keys.None) {
     
    667665
    668666    private void canvasUI_MouseMove(object sender, MouseEventArgs e) {
    669       if (currentMousePos == e.Location)
    670         return;
    671667      if (mouseEventListener != null) {
    672668        mouseEventListener.MouseMove(sender, e);
    673669      }
    674 
    675       currentMousePos = e.Location;
    676670    }
    677671
     
    688682        double zoomFactor = (e.Delta > 0) ? 0.7 : 1.3;
    689683
    690         PointD world;
    691 
    692         world = Transform.ToWorld(e.Location, xAxis.Viewport, xAxis.ClippingArea);
     684        PointD world = Transform.ToWorld(e.Location, xAxis.Viewport, xAxis.ClippingArea);
    693685
    694686        double x1 = world.X - (world.X - xAxis.ClippingArea.X1) * zoomFactor;
Note: See TracChangeset for help on using the changeset viewer.