diff view/Pane.cpp @ 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 b0eeec95ab5b
children c8a6fd3f9dff
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 &&