use raw (physical) coords in LIST_(R)DRAG events (patch 444912)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-08-25 15:41:17 +00:00
parent 0baac61e4f
commit 8d1d22845a

View File

@ -2887,7 +2887,12 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
if (event.Dragging()) if (event.Dragging())
{ {
if (m_dragCount == 0) if (m_dragCount == 0)
m_dragStart = wxPoint(x,y); {
// we have to report the raw, physical coords as we want to be
// able to call HitTest(event.m_pointDrag) from the user code to
// get the item being dragged
m_dragStart = event.GetPosition();
}
m_dragCount++; m_dragCount++;