Fix vertical scroll with horizontal component not being recognized properly
Commit 864b59fc assumes that any scroll that includes an horizontal component != 0 is definitely not a vertical scroll, which is not generally true. Using an approach similar to the one in utilities/konsole@a1d843f9 to determine scroll direction solves the problem.
Fixes this bug https://bugs.kde.org/show_bug.cgi?id=430532