Bug 371999

Summary: Scroll direction in debug console inverted
Product: [Plasma] kwin Reporter: Kai Uwe Broulik <kde>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor Flags: mgraesslin: Wayland+
mgraesslin: ReviewRequest+
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://phabricator.kde.org/D3247
Latest Commit: Version Fixed In: 5.8.4
Sentry Crash Report:

Description Kai Uwe Broulik 2016-11-02 20:44:57 UTC
When scrolling through ScrollView's in KWin's Wayland debug console, the scroll direction is inverted. This happens for both mouse wheel and touchpad scrolling.
Comment 1 Martin Flöser 2016-11-03 06:19:28 UTC
Known issue: https://todo.kde.org/?controller=task&action=show&task_id=1641
Comment 2 Martin Flöser 2016-11-03 12:12:34 UTC
Possible patch at https://phabricator.kde.org/D3247
Comment 3 Martin Flöser 2016-11-04 08:00:27 UTC
Git commit da0ba763248367fffb9fa7277009110ca851a2a1 by Martin Gräßlin.
Committed on 04/11/2016 at 08:00.
Pushed by graesslin into branch 'Plasma/5.8'.

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.
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/D3247

M  +2    -2    input.cpp

http://commits.kde.org/kwin/da0ba763248367fffb9fa7277009110ca851a2a1