X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b480710b16ac3b941ba55fd981f441fc6724c386..e9d7ad4dbf0cbbefb0404377506555cf0012014a:/samples/plot/plot.cpp diff --git a/samples/plot/plot.cpp b/samples/plot/plot.cpp index 447944fd7b..3898313e16 100644 --- a/samples/plot/plot.cpp +++ b/samples/plot/plot.cpp @@ -121,6 +121,7 @@ MyFrame::MyFrame() m_plot = new wxPlotWindow( this, -1, wxPoint(0,0), wxSize(100,100), wxSUNKEN_BORDER | wxPLOT_DEFAULT ); m_plot->SetUnitsPerValue( 0.01 ); + m_plot->SetScrollOnThumbRelease( TRUE ); m_plot->Add( new MyPlotCurve( 0, -1.5, 1.5 ) ); m_plot->Add( new MyPlotCurve( 50, -1.5, 1.5 ) );