Mercurial > hg > svgui
changeset 1404:a33d38247631
Make horizontal wheeling a bit less crazily fast in the absence of fine delta information
author | Chris Cannam |
---|---|
date | Fri, 16 Nov 2018 09:01:38 +0000 |
parents | 10e768adaee5 |
children | 4c359c2b220c 24234307c9b2 |
files | view/Pane.cpp |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/view/Pane.cpp Thu Nov 15 15:08:08 2018 +0000 +++ b/view/Pane.cpp Fri Nov 16 09:01:38 2018 +0000 @@ -2367,18 +2367,14 @@ void Pane::wheelHorizontal(int sign, Qt::KeyboardModifiers mods) { -// cerr << "wheelHorizontal: sign = " << sign << endl; - // Scroll left or right, rapidly - wheelHorizontalFine((width() / 4) * sign, mods); + wheelHorizontalFine(120 * sign, mods); } void Pane::wheelHorizontalFine(int pixels, Qt::KeyboardModifiers) { -// cerr << "wheelHorizontalFine: pixels = " << pixels << endl; - // Scroll left or right by a fixed number of pixels if (getStartFrame() < 0 &&