diff --git a/src/WidgetTree/nuiTopLevel.cpp b/src/WidgetTree/nuiTopLevel.cpp index e9226a54..12829ea6 100644 --- a/src/WidgetTree/nuiTopLevel.cpp +++ b/src/WidgetTree/nuiTopLevel.cpp @@ -1323,12 +1323,10 @@ NGL_TOUCHES_DEBUG( NGL_OUT(_T("nuiTopLevel::CallMouseMove X:%d Y:%d\n"), rInfo.X if (mMouseStates.find(rInfo.TouchId) != mMouseStates.end()) { //NGL_OUT("Found %x\n", rInfo.TouchId); + // Only update the mouse state if there was an existing touch already registered. + // On a desktop computer with a mouse, when you move the mouse of the window with no button down there is no existing state to update. mMouseStates[rInfo.TouchId] = rInfo; } - else - { - //NGL_OUT("ERROR Touch Not found %x\n", rInfo.TouchId); - } mMouseInfo.X = rInfo.X; mMouseInfo.Y = rInfo.Y;