[wx-dev] scrolling code is wrong :-)
Paul Cornett
pc-wx at bullseye.com
Mon Jun 25 08:47:39 PDT 2007
Robert Roebling wrote:
> Another thing which came to my mind while being bored is
> that we probably should not handle mouse wheel action
> in wxScrollHelper at all. There is a native handler which
> might do something special (either nice or just special)
> and we should use it (under GTK+). So I intend:
> a) to block events from wxWindow::SetScrollPosition()
Again, SetScrollPos does _not_ fire any wx events. No changes are, or
were, needed for this.
> b) apply your fix to wxListCtrl uber-special scroll
> handling with centralized visible line range testing
> and cashing
> c) return true in the event processing for mouse wheel
> action to prevent double action
> d) disable non-native mouse-wheel action in wxScrollHelper
> for GTK+
If you want native scroll wheel behavior, which seems reasonable, I
think the best way to do it might be to simply use connect_after for
our wheel signal handler.
> ... after setting up SVN some time.
I'll do it if you haven't gotten to it by tonight (0000 UTC)
More information about the wx-dev
mailing list