Invert the scroll direction for wheel events on internal windows
Summary: For whatever reason Qt scrolled the wrong way on internal windows. As a new QWheelEvent is constructed anyway, just multiply by -1 to get the direction fixed. BUG: 371999 FIXED-IN: 5.8.4 Test Plan: Tried debug console in nested setup, scrolled correctly now. Reviewers: #kwin, #plasma_on_wayland, broulik Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D3247icc-effect-5.14.5
parent
db58c421eb
commit
da0ba76324
|
@ -492,8 +492,8 @@ class InternalWindowEventFilter : public InputEventFilter {
|
|||
const Qt::Orientation orientation = (event->angleDelta().x() != 0) ? Qt::Horizontal : Qt::Vertical;
|
||||
const int delta = event->angleDelta().x() != 0 ? event->angleDelta().x() : event->angleDelta().y();
|
||||
QWheelEvent e(localPos, event->globalPosF(), QPoint(),
|
||||
event->angleDelta(),
|
||||
delta,
|
||||
event->angleDelta() * -1,
|
||||
delta * -1,
|
||||
orientation,
|
||||
event->buttons(),
|
||||
event->modifiers());
|
||||
|
|
Loading…
Reference in New Issue