tempSelection.clear();
dragRectStartPoint = null;
dragRectEndPoint = null;
pressed = false;
if(selectedHandle instanceof ResizeHandle) {
ResizeHandle rh = (ResizeHandle) selectedHandle;
final Bounds startBounds = this.resizeStartBounds;
final SResizeableNode sn = rh.getResizeableNode();
final Bounds endBounds = new Bounds(sn.getX(), sn.getY(), sn.getWidth(), sn.getHeight());
context.getUndoManager().pushAction(new UndoManager.UndoableAction(){
public void executeUndo() {
sn.setX(startBounds.getX());
sn.setY(startBounds.getY());