| 434 | } |
| 435 | |
| 436 | float SimulationInteractionController::calcZoomFactor(std::chrono::steady_clock::time_point const& lastTimepoint) |
| 437 | { |
| 438 | auto now = std::chrono::steady_clock::now(); |
| 439 | auto duration = toFloat(std::chrono::duration_cast<std::chrono::milliseconds>(now - lastTimepoint).count()); |
| 440 | _lastZoomTimepoint = now; |
| 441 | return powf(Viewport::get().getZoomSensitivity(), duration / 15); |
| 442 | } |
nothing calls this directly
no test coverage detected