# HG changeset patch # User Chris Cannam # Date 1415960390 0 # Node ID 7463ece5d5e8317c09af2e70f1b117cde65aed0d # Parent 99299949f965da36ea359b48306407d9102b6e7e Wheel event thing diff -r 99299949f965 -r 7463ece5d5e8 view/Pane.cpp --- a/view/Pane.cpp Fri Oct 17 16:47:53 2014 +0100 +++ b/view/Pane.cpp Fri Nov 14 10:19:50 2014 +0000 @@ -2286,6 +2286,13 @@ // Coarse wheel information (or vertical zoom, which is // necessarily coarse itself) + // Sometimes on Linux we're seeing absurdly extreme angles on + // the first wheel event -- discard those entirely + if (abs(m_pendingWheelAngle) >= 600) { + m_pendingWheelAngle = 0; + return; + } + while (abs(m_pendingWheelAngle) >= 120) { int sign = (m_pendingWheelAngle < 0 ? -1 : 1);