Mercurial > hg > svgui
diff view/Pane.cpp @ 894:d4446f267e12 alignment_view
Scale drag thresholds according to actual display resolution
author | Chris Cannam |
---|---|
date | Thu, 15 Jan 2015 10:42:00 +0000 |
parents | dd95abfe736c |
children | a3b3b64fbc43 |
line wrap: on
line diff
--- a/view/Pane.cpp Fri Nov 21 14:50:27 2014 +0000 +++ b/view/Pane.cpp Thu Jan 15 10:42:00 2015 +0000 @@ -2028,6 +2028,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;