# HG changeset patch # User Chris Cannam # Date 1415635169 0 # Node ID e04d3c54d0ee8ed672ccc7e860e23d790706a360 # Parent 2857e6352b06347e27af8bf830542e3e6e587330# Parent 0cdaf382f21eb4c743f71c7fad3fe9573aeefbe7 Merge diff -r 2857e6352b06 -r e04d3c54d0ee view/Pane.cpp --- a/view/Pane.cpp Mon Nov 10 15:59:09 2014 +0000 +++ b/view/Pane.cpp Mon Nov 10 15:59:29 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) > 1000) { + m_pendingWheelAngle = 0; + return; + } + while (abs(m_pendingWheelAngle) >= 120) { int sign = (m_pendingWheelAngle < 0 ? -1 : 1);