Mouse wheel event's angleDelta().y() always 0 with Alt key modifier

Florian Bruhin me at the-compiler.org
Fri Nov 25 09:10:02 GMT 2022


On Fri, Nov 25, 2022 at 10:01:39AM +0100, Tobias Megies wrote:
> When Alt key is held down, mouse wheel events always report 0 for
> "angleDelta().y()", i.e. it is impossible to tell in which direction the
> mouse wheel was scrolled. Not sure if Alt is the only affected modifier, in
> any case some other common keys like shift or control are not affected.

It's a Qt problem, or rather probably intended Qt feature.
Pressing Alt and scrolling leads to a horizontal scroll:

https://bugreports.qt.io/browse/QTBUG-91556
https://bugreports.qt.io/browse/QTBUG-78550

Florian

-- 
            me at the-compiler.org | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20221125/47f85b54/attachment.sig>


More information about the PyQt mailing list