Changeset 2015
- Timestamp:
- 06/04/09 20:34:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs
r2014 r2015 32 32 private readonly TooltipListener toolTipListener; 33 33 private readonly ToolTip valueToolTip; 34 private Point currentMousePos;35 34 36 35 /// <summary> … … 61 60 toolTipListener.ShowToolTip += ShowToolTip; 62 61 mouseEventListener = toolTipListener; 63 currentMousePos = new Point(0, 0);64 62 65 63 this.ResizeRedraw = true; … … 645 643 valueToolTip.Hide(this); 646 644 mouseEventListener = null; 647 this.contextMenu.Show(PointToScreen(e.Location));645 contextMenu.Show(PointToScreen(e.Location)); 648 646 } else if (e.Button == MouseButtons.Left) { 649 647 if (ModifierKeys == Keys.None) { … … 667 665 668 666 private void canvasUI_MouseMove(object sender, MouseEventArgs e) { 669 if (currentMousePos == e.Location)670 return;671 667 if (mouseEventListener != null) { 672 668 mouseEventListener.MouseMove(sender, e); 673 669 } 674 675 currentMousePos = e.Location;676 670 } 677 671 … … 688 682 double zoomFactor = (e.Delta > 0) ? 0.7 : 1.3; 689 683 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); 693 685 694 686 double x1 = world.X - (world.X - xAxis.ClippingArea.X1) * zoomFactor;
Note: See TracChangeset
for help on using the changeset viewer.