fix bug that content_view doesn't work correctly with dnd

This commit is contained in:
Jinhao 2018-11-02 04:19:46 +08:00
parent 91675cb32d
commit 72f779b4bd

View File

@ -124,15 +124,18 @@ namespace nana {
}
else if (event_code::mouse_move == arg.evt_code)
{
if (this->drag_view_move && (dragdrop_status::not_ready == API::window_dragdrop_status(this->window_handle)))
if (dragdrop_status::not_ready != API::window_dragdrop_status(this->window_handle))
{
if (this->drive(arg.pos))
//When dnd is in progress, it cancels the move_view operation.
this->drag_view_move = false;
tmr.stop();
}
else if (this->drag_view_move && this->drive(arg.pos))
{
tmr.interval(16);
tmr.start();
}
}
}
else if (event_code::mouse_up == arg.evt_code)
{
this->drag_view_move = false;