From 05a5609b200cc0fcad35ed6159601e01ae99526c Mon Sep 17 00:00:00 2001 From: Sebastien Metrot Date: Sun, 29 Dec 2013 00:38:02 +0100 Subject: [PATCH] added some comment --- src/WidgetTree/nuiTopLevel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;