Mercurial > hg > svgui
comparison view/Pane.cpp @ 873:9855fc0927af tonioni
Be more ruthless
author | Chris Cannam |
---|---|
date | Mon, 10 Nov 2014 16:07:33 +0000 |
parents | 0cdaf382f21e |
children | 0e674f1bbf08 1fc4f29feb2e |
comparison
equal
deleted
inserted
replaced
872:e04d3c54d0ee | 873:9855fc0927af |
---|---|
2286 // Coarse wheel information (or vertical zoom, which is | 2286 // Coarse wheel information (or vertical zoom, which is |
2287 // necessarily coarse itself) | 2287 // necessarily coarse itself) |
2288 | 2288 |
2289 // Sometimes on Linux we're seeing absurdly extreme angles on | 2289 // Sometimes on Linux we're seeing absurdly extreme angles on |
2290 // the first wheel event -- discard those entirely | 2290 // the first wheel event -- discard those entirely |
2291 if (abs(m_pendingWheelAngle) > 1000) { | 2291 if (abs(m_pendingWheelAngle) >= 600) { |
2292 m_pendingWheelAngle = 0; | 2292 m_pendingWheelAngle = 0; |
2293 return; | 2293 return; |
2294 } | 2294 } |
2295 | 2295 |
2296 while (abs(m_pendingWheelAngle) >= 120) { | 2296 while (abs(m_pendingWheelAngle) >= 120) { |