]> git.saurik.com Git - wxWidgets.git/commitdiff
use raw (physical) coords in LIST_(R)DRAG events (patch 444912)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Aug 2001 15:41:17 +0000 (15:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Aug 2001 15:41:17 +0000 (15:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 59f91bb29b3399b0c9a8067e85e2244063c5caa6..6afacceaeab175e2c172fa65ec2b882fcf8d2b2c 100644 (file)
@@ -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++;