Changeset 8353


Ignore:
Timestamp:
07/29/12 21:51:10 (7 years ago)
Author:
jkarder
Message:

#1747:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/HeuristicLab.Netron-3.0.2672.12446/CustomTools/CustomPanTool.cs

    r8000 r8353  
    3232
    3333    public CustomPanTool() : base(ToolName) { }
    34 
    3534    public CustomPanTool(string toolName) : base(toolName) { }
    3635
     
    5251        IDiagramControl control = Controller.ParentControl;
    5352        Point origin = Controller.View.Origin;
    54 
    5553        Point offset = new Point(previousMouseLocation.X - currentLocation.X, previousMouseLocation.Y - currentLocation.Y);
    56 
    5754        origin.Offset(offset);
    5855
    5956        if (origin.X < 0) origin.X = 0;
    60 
    61 
    6257        if (origin.Y < 0) origin.Y = 0;
    6358
     
    6863    }
    6964
    70     public void MouseUp(MouseEventArgs e) {
    71       //if (IsActive && !IsSuspended) this.previousMouseLocation = Point.Empty;
    72     }
     65    public void MouseUp(MouseEventArgs e) { }
    7366    #endregion
    7467
     
    7770      if (e.KeyCode == Keys.Escape)
    7871        DeactivateTool();
    79       else if (e.KeyCode == Keys.Space)
    80         ActivateTool();
    8172    }
    8273
    83     public void KeyUp(KeyEventArgs e) {
    84       if (e.KeyCode == Keys.Space)
    85         DeactivateTool();
    86     }
     74    public void KeyUp(KeyEventArgs e) { }
    8775
    8876    public void KeyPress(KeyPressEventArgs e) { }
Note: See TracChangeset for help on using the changeset viewer.