All: fix spurious wheel scroll events caused when using modern mice.
Modern mice feature horizontal scrolling capabilities and those end up being treated by KiCad as regular scroll events causing confusion among users. The fix works by discarding the handling of wheel events other than the ones for the vertical axis. Fixes: lp:1828080 https://bugs.launchpad.net/kicad/+bug/1828080
This commit is contained in:
parent
2c71d550ab
commit
e10c01aaff
|
@ -159,6 +159,12 @@ void WX_VIEW_CONTROLS::onWheel( wxMouseEvent& aEvent )
|
||||||
m_lastTimestamp = aEvent.GetTimestamp();
|
m_lastTimestamp = aEvent.GetTimestamp();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Fix issue caused by modern mice that feature horizontal scrolling by only handling
|
||||||
|
// vertical axis, otherwise horizontal scrolling events end up interpreted as vertical
|
||||||
|
// scroll events and confuse the user.
|
||||||
|
if( aEvent.GetWheelAxis() > 0 )
|
||||||
|
return;
|
||||||
|
|
||||||
// mousewheelpan disabled:
|
// mousewheelpan disabled:
|
||||||
// wheel + ctrl -> horizontal scrolling;
|
// wheel + ctrl -> horizontal scrolling;
|
||||||
// wheel + shift -> vertical scrolling;
|
// wheel + shift -> vertical scrolling;
|
||||||
|
|
Loading…
Reference in New Issue