89f9bf545d
Commite10c01aafdidn't work when touchpad panning was enabled. This commit changes it to only discard horizontal wheel events when in "scroll mode" rather than "pan mode". Based on a patch by Adrian Scripcă <benishor@gmail.com>. Follow-up to fix: lp:1828080 https://bugs.launchpad.net/kicad/+bug/1828080 (cherry picked from commite6fe220f84)