comparison view/Pane.cpp @ 877:7463ece5d5e8 alignment_view

Wheel event thing
author Chris Cannam
date Fri, 14 Nov 2014 10:19:50 +0000
parents 59a22f3bf86d
children dd95abfe736c
comparison
equal deleted inserted replaced
868:99299949f965 877:7463ece5d5e8
2284 } else { 2284 } else {
2285 2285
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
2290 // the first wheel event -- discard those entirely
2291 if (abs(m_pendingWheelAngle) >= 600) {
2292 m_pendingWheelAngle = 0;
2293 return;
2294 }
2295
2289 while (abs(m_pendingWheelAngle) >= 120) { 2296 while (abs(m_pendingWheelAngle) >= 120) {
2290 2297
2291 int sign = (m_pendingWheelAngle < 0 ? -1 : 1); 2298 int sign = (m_pendingWheelAngle < 0 ? -1 : 1);
2292 2299
2293 if (horizontal) { 2300 if (horizontal) {