scrolling with second mouse wheel doesn't work

Bug #1210762 reported by Tomasz Kontusz
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Wishlist
Tomasz Kontusz

Bug Description

Second mouse wheel seems to be ignored in KiCad.

Typically it scrolls horizontally, and that's what I expected from using it with shift (as first wheel scrolls vertically with shift).

Revision history for this message
Dick Hollenbeck (dickelbeck) wrote :

Someone, please check the wxWidgets documentation, see if it is even supported.
Tomasz, if you can find someone to make you a patch or you can do it yourself. I don't see any problem adding this patch. But since not many folks have such a mouse, it is not likely to get done without your efforts.

Changed in kicad:
importance: Undecided → Wishlist
status: New → Won't Fix
Revision history for this message
Tomasz Kontusz (tomasz-kontusz) wrote :

As for not many folks having a mouse like that: most touchpads support horizontal scrolling too :-)

But back to the problem:
It looks like wxWidgets 2.9 added support for 2-axis scroll wheels, with a slight change in API in 2.9.4 (see http://docs.wxwidgets.org/2.9.5/classwx_mouse_event.html#a6e455a3fa3708031d8571e42489d453e). I wrote a patch that uses this API if KiCad is compiled with wx >=2.9, that I tested with 2.9.5 and 2.8.12.

With GTK wxWidgets < 2.9 horizontal scrolling works, shift pressed or not - I guess it uses the scrollbar event if the mouse wheel one was not consumed.

Revision history for this message
Povilas Kanapickas (p12) wrote :

Dick, could you commit this patch? Are there any problems with it?

Changed in kicad:
status: Won't Fix → Confirmed
Revision history for this message
Blair Bonnett (bcb) wrote :

Tomasz's patch was committed a year and a half ago in r4505 [1].

However, the wxWidgets version check in it is dodgy meaning it will only be used for wxWidgets 2.9, not the 3.0 that is now the minimum version required for KiCad. I have fixed this up as part of some work removing pre-3.0 specific code; I have posted a patch to the mailing list which will hopefully be applied shortly.

[1] http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/revision/4505

Changed in kicad:
assignee: nobody → Tomasz Kontusz (tomasz-kontusz)
status: Confirmed → In Progress
Revision history for this message
Blair Bonnett (bcb) wrote :

The wxWidgets version check has been fixed. I believe that this issue is now fixed as well.

Changed in kicad:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.