Better scrolling speed.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-25 17:23:55 +03:00
parent ba976b299a
commit 343275ed52

View File

@ -68,7 +68,6 @@ void GraphicsViewZoom::gentle_zoom(double factor)
void GraphicsViewZoom::set_modifiers(Qt::KeyboardModifiers modifiers) void GraphicsViewZoom::set_modifiers(Qt::KeyboardModifiers modifiers)
{ {
_modifiers = modifiers; _modifiers = modifiers;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -84,11 +83,11 @@ void GraphicsViewZoom::scrollingTime(qreal x)
qreal factor = 1.0; qreal factor = 1.0;
if (_numScheduledScalings < 0) if (_numScheduledScalings < 0)
{ {
factor = factor*2.8; factor = factor*13.8;
} }
else else
{ {
factor = factor*-2.8; factor = factor*-13.8;
} }
_view->verticalScrollBar()->setValue(qRound(_view->verticalScrollBar()->value() + factor)); _view->verticalScrollBar()->setValue(qRound(_view->verticalScrollBar()->value() + factor));