Mercurial > hg > svgui
diff view/Pane.cpp @ 921:4968bbaf1ed8 tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 23 Mar 2015 10:04:51 +0000 |
parents | 0e674f1bbf08 78e041e45ff0 |
children | 26da827e8fb5 |
line wrap: on
line diff
--- a/view/Pane.cpp Tue Nov 11 17:05:44 2014 +0000 +++ b/view/Pane.cpp Mon Mar 23 10:04:51 2015 +0000 @@ -2024,6 +2024,11 @@ int smallThreshold = 10, bigThreshold = 80; + if (m_manager) { + smallThreshold = m_manager->scalePixelSize(smallThreshold); + bigThreshold = m_manager->scalePixelSize(bigThreshold); + } + // SVDEBUG << "Pane::updateDragMode: xdiff = " << xdiff << ", ydiff = " // << ydiff << ", canMoveVertical = " << canMoveVertical << ", drag mode = " << m_dragMode << endl; @@ -2288,7 +2293,7 @@ // Sometimes on Linux we're seeing absurdly extreme angles on // the first wheel event -- discard those entirely - if (abs(m_pendingWheelAngle) >= 600) { + if (abs(m_pendingWheelAngle) > 1000) { m_pendingWheelAngle = 0; return; }