X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca808bbfe8799ee196436a640a3ea5c356f0df4b..9298c435cf9b3f5112de555c46c52c51f1d284bb:/src/univ/themes/win32.cpp diff --git a/src/univ/themes/win32.cpp b/src/univ/themes/win32.cpp index 355244c890..3261e10239 100644 --- a/src/univ/themes/win32.cpp +++ b/src/univ/themes/win32.cpp @@ -3861,8 +3861,7 @@ bool wxWin32ScrollBarInputHandler::HandleMouse(wxInputConsumer *control, { // we just started dragging the thumb, remember its initial position to // be able to restore it if the drag is cancelled later - m_eventStartDrag.m_x = event.m_x; - m_eventStartDrag.m_y = event.m_y; + m_eventStartDrag = event; } return rc; @@ -3957,8 +3956,7 @@ bool wxWin32ScrollBarInputHandler::HandleMouseMove(wxInputConsumer *control, { // remember the current thumb position to be able to restore it // if the mouse returns to it later - m_eventLastDrag.m_x = event.m_x; - m_eventLastDrag.m_y = event.m_y; + m_eventLastDrag = event; // and restore the original position (before dragging) of the // thumb for now