]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
Fixed thread state problem in wxTreeCtrl.GetBoundingBox
[wxWidgets.git] / samples / scroll / scroll.cpp
index e612f23c765e7150ec15b378ba5208076c686344..bb4006f44c66de11165aaf1acc8c3e8fceb53a13 100644 (file)
@@ -254,8 +254,7 @@ void MyCanvas::OnScrollWin( wxCommandEvent &WXUNUSED(event) )
 
 void MyCanvas::OnScroll( wxScrollWinEvent &event )
 {
-    if (( event.GetEventType() == wxEVT_SCROLLWIN_THUMBTRACK ) &&
-        ( !event.IsScrolling() ))
+    if (( event.GetEventType() == wxEVT_SCROLLWIN_THUMBRELEASE ))
     {
         wxLogMessage( "Thumb released; position: %u", event.GetPosition() );
     }