mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.Geom/Ctrl: minor D&D related fixes in PlotterCtrl
git-svn-id: svn://ultimatepp.org/upp/trunk@3381 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
71d52bd900
commit
9b8a639680
2 changed files with 3 additions and 3 deletions
|
|
@ -802,14 +802,14 @@ void PlotterCtrl::Drop(Point start, Point end, dword keyflags)
|
|||
|
||||
void PlotterCtrl::Click(Point pt, dword keyflags)
|
||||
{
|
||||
if(drag_drop)
|
||||
if(drag_drop && drag_mode == DRAG_CUSTOM)
|
||||
drag_drop->Click(FromPushClient(pt), keyflags);
|
||||
}
|
||||
|
||||
void PlotterCtrl::Cancel()
|
||||
{
|
||||
PanOffset(Size(0, 0));
|
||||
if(drag_drop) {
|
||||
if(drag_drop && drag_mode == DRAG_CUSTOM) {
|
||||
drag_drop->Cancel();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ void DragDropCtrl::LeftDown(Point pt, dword keyflags)
|
|||
void DragDropCtrl::LeftDouble(Point pt, dword keyflags)
|
||||
{
|
||||
SetWantFocus();
|
||||
Click(pt, keyflags | K_MOUSEDOUBLE);
|
||||
Push(pt, keyflags | K_MOUSEDOUBLE);
|
||||
}
|
||||
|
||||
void DragDropCtrl::DragStop(bool accept, dword keyflags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue