qt: handle special case with high precision scrolling in custom scroll handler
It appears that at least with XWayland, pixel delta is reported as angle delta, and this information can be used to properly handle high precision scrolling.
I have heard that Mac OS was also problematic with this regard. I can't test it, but this may also fix the behavior on that platform.
This will fix scrolling behavior in at least these cases:
- Smooth scrolling disabled, and high precision mouse/trackpad is used.
- Smooth scrolling enabled (default). However, used Qt version is < 5.15.8, so custom scroll handler is force enabled for high precision scrolling.