From: Vadim Zeitlin Date: Sat, 25 Aug 2001 15:41:17 +0000 (+0000) Subject: use raw (physical) coords in LIST_(R)DRAG events (patch 444912) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8d1d22845ab19698b0c7e6ebe94debfb6213ca45 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 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 59f91bb29b..6afacceaea 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2887,7 +2887,12 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) if (event.Dragging()) { 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++;