1
0
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:
Matei 2008-07-29 06:56:38 +00:00
parent 53765659da
commit 435ac684e3

View File

@ -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);