Commit 789ae9b5 authored by NiranV's avatar NiranV
Browse files

Fixed: Onscreen camera controls not subject to zoom-scaling like Alt-Cam...

Fixed: Onscreen camera controls not subject to zoom-scaling like Alt-Cam making it hard to control when zoomed in.
parent 3cfe5fcf
......@@ -553,16 +553,17 @@ void LLJoystickCameraRotate::resetJoystickCamera()
F32 LLJoystickCameraRotate::getOrbitRate()
{
F32 zoom_factor = llclamp(LLViewerCamera::getInstance()->getView(), 0.2f, 1.f);
F32 time = getElapsedHeldDownTime();
if( time < NUDGE_TIME )
{
F32 rate = ORBIT_NUDGE_RATE + time * (1 - ORBIT_NUDGE_RATE)/ NUDGE_TIME;
F32 rate = ORBIT_NUDGE_RATE + time * (1 - ORBIT_NUDGE_RATE)/ NUDGE_TIME * zoom_factor;
//LL_INFOS() << rate << LL_ENDL;
return rate;
}
else
{
return 1;
return 1 * zoom_factor;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment