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:
@@ -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); }
|
||||
|
Reference in New Issue
Block a user