[wx-dev] scrolling code is wrong :-)
Paul Cornett
pc-wx at bullseye.com
Sat Jun 23 15:07:31 PDT 2007
Robert Roebling wrote:
> Paul Cornett wrote:
>
> > SetScrollPos does _not_ cause a wxScrollWinEvent.
>
> Hm, in my analysis wxWindow::SetScrollPos() calls
> gtk_adjustment_value_changed() which emits
> "value_changed" which is caught by our
> gtk_scrollbar_value_changed()
...which won't do anything because adj->value == oldPos
If you follow backtraces for the wxScrollWinEvents, you will see
there are 4 for each mouse wheel event: 3 coming from
wxScrollHelper::HandleOnMouseWheel which are correct,
and one from GtkScrolledWindow code which is causing the problem.
SetScrollPos will not appear in any of the backtraces.
More information about the wx-dev
mailing list