app.toolPalette->Refresh(false);
}
- return;
+// return;
}
-
- if (e.MiddleIsDown())
+ else if (e.MiddleIsDown())
{
// Calc offset from previous point
pt = e.GetPosition();
// Otherwise, we would subtract both offsets!
offsetX -= ptOffset.x, offsetY += ptOffset.y;
Refresh();
+// ptPrevious = pt;
- return;
+// return;
}
-// if (e.LeftIsDown())
-// {
+ else if (e.LeftIsDown())
+ {
#if 0
if (tool == TOOLScroll)
{
}
else
#endif
- if (tool == TOOLAddPt || tool == TOOLAddPoly || tool == TOOLSelect)
+ if (tool == TOOLAddPt || tool == TOOLAddPoly || tool == TOOLSelect)
{
if (tool != TOOLAddPt || pts.GetNumPoints() > 0)//yecch.
{
//temporary, for testing. BTW, Select drag bug is here...!
-#if 0
+#if 1
wxPoint pt2 = GetAdjustedMousePosition(e);
pts.SetXY(ptHighlight, pt2.x, pt2.y);
Refresh();
Refresh();
}
}
-// }
+ }
ptPrevious = pt;
}