Bug 1588

Summary: Horizontal Scroll is in the wrong direction
Product: PulseView Reporter: Johannes König <yooox>
Component: UIAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal CC: yooox
Priority: Normal    
Version: 0.4.2   
Target Milestone: ---   
Hardware: x86   
OS: Linux   
Attachments: path to fix this bug

Description Johannes König 2020-08-21 21:03:35 CEST
When scrolling the pulse view horizontally, it scrolls in the wrong direction (the viewport is scrolled to the left while you scroll to the right on your device). This is especially noticeable, when using a device, that can natively scroll horizontally, like a touchpad or a pointing stick

Steps to reproduce:
- start pulseview and open a captured trace or capture a new one.
- zoom in enough so you can scroll horizontally
- try to scroll towards the end of the captured trace by either of the following
   - hold <Alt> and scroll down* (some accessibility functions might interfere with this guesture, so disable that first)
   - hold <middle pointing stick button> and push the pointing stick to the right*
   - swipe with two fingers (or with one finger on the bottom edge) to the right* on the touchpad
* if you have something like "natural scrolling" enabled for this device, move in the opposite direction

Expected behaviour:
- the pulseview scrolls towards the end of the captured trace

Actual behaviour:
- the pulseview scrolls towards the beginning of the beginning of the captured trace

- any pointing device that can scroll horizontally (or an ordinary vertical scroll wheel + <Alt>

- pulseview 0.4.1 and 0.4.2 and current nightly on Xubuntu 20.04 and OpenSuse Leap 15.1
Comment 1 Johannes König 2020-08-21 21:06:22 CEST
Created attachment 664 [details]
path to fix this bug

I have already prepared a patch for that. It works nicely for my Linux setup. However I can't test on Windows or MacOS.