forked from 0ad/0ad
Fixed an bug where double-clicking on the minimap, or dragging the view and them leaving the minimap window, did not clear the "clicking" flag and caused further mouse motion to move the view around.
This was SVN commit r6288.
This commit is contained in:
parent
53765659da
commit
435ac684e3
@ -80,6 +80,13 @@ void CMiniMap::HandleMessage(const SGUIMessage &Message)
|
||||
m_Clicking = false;
|
||||
break;
|
||||
}
|
||||
case GUIM_MOUSE_DBLCLICK_LEFT:
|
||||
{
|
||||
if(m_Clicking)
|
||||
SetCameraPos();
|
||||
m_Clicking = false;
|
||||
break;
|
||||
}
|
||||
case GUIM_MOUSE_ENTER:
|
||||
{
|
||||
g_Selection.m_mouseOverMM = true;
|
||||
@ -88,9 +95,9 @@ void CMiniMap::HandleMessage(const SGUIMessage &Message)
|
||||
case GUIM_MOUSE_LEAVE:
|
||||
{
|
||||
g_Selection.m_mouseOverMM = false;
|
||||
m_Clicking = false;
|
||||
break;
|
||||
}
|
||||
|
||||
case GUIM_MOUSE_RELEASE_RIGHT:
|
||||
{
|
||||
CMiniMap::FireWorldClickEvent(SDL_BUTTON_RIGHT, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user