wxMouseEvent::Moving() shouldn't return true when we're really dragging the mouse

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-10-16 07:55:25 +00:00
parent 8a7dfb14a2
commit 6f63704ff4
3 changed files with 56 additions and 6 deletions

View File

@@ -722,12 +722,14 @@ public:
// True if a button is down and the mouse is moving
bool Dragging() const
{
return ((m_eventType == wxEVT_MOTION) &&
(LeftIsDown() || MiddleIsDown() || RightIsDown()));
return (m_eventType == wxEVT_MOTION) && ButtonDown(wxMOUSE_BTN_ANY);
}
// True if the mouse is moving, and no button is down
bool Moving() const { return (m_eventType == wxEVT_MOTION); }
bool Moving() const
{
return (m_eventType == wxEVT_MOTION) && !ButtonDown(wxMOUSE_BTN_ANY);
}
// True if the mouse is just entering the window
bool Entering() const { return (m_eventType == wxEVT_ENTER_WINDOW); }