]> sigrok.org Git - pulseview.git/commitdiff
View: Fix #513 by scrolling 1/8th the view height per step
authorSoeren Apel <redacted>
Fri, 12 Dec 2014 16:41:08 +0000 (17:41 +0100)
committerJoel Holdsworth <redacted>
Sat, 13 Dec 2014 10:17:25 +0000 (10:17 +0000)
pv/view/view.cpp

index 083d02dad9c6fa6043ae3c906363165a2c8294c0..539581ad1ce95bd934c5f030639455c235ce7e8d 100644 (file)
@@ -483,6 +483,7 @@ void View::update_scroll()
 
        // Set the vertical scrollbar
        verticalScrollBar()->setPageStep(areaSize.height());
+       verticalScrollBar()->setSingleStep(areaSize.height() / 8);
 
        const pair<int, int> extents = v_extents();
        const int extra_scroll_height = (extents.second - extents.first) / 4;