Skip to content

Commit

Permalink
re-added code for changeing sensitivity #421
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaNowak committed Nov 6, 2024
1 parent d087b9f commit 5a961b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PRo3D.Viewer/Navigation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ module Navigation =
| _ ->
model

//// update move sensitivity and target center to current values in model - why is this necessary here? Should this not be done whenever changes occur in model?
//let sensitivity = (lenses.navigationSensitivity.Get(viewConfigModel))
// update move sensitivity and target center to current values in model - why is this necessary here? Should this not be done whenever changes occur in model?
let sensitivity = (lenses.navigationSensitivity.Get(viewConfigModel))

//let zoomMouseWheelSensitivity = exp(sensitivity) * 0.1 // TODO RNO check where that calculation comes from
//let camera = snd OrbitState.moveSensitivity_ sensitivity camera
//let camera = snd OrbitState.zoomSensitivity_ zoomMouseWheelSensitivity camera
//let camera = snd OrbitState.targetCenter_ model.exploreCenter camera
let zoomMouseWheelSensitivity = exp(sensitivity) * 0.1 // TODO RNO check where that calculation comes from
let camera = snd OrbitState.moveSensitivity_ sensitivity camera
let camera = snd OrbitState.zoomSensitivity_ zoomMouseWheelSensitivity camera
let camera = snd OrbitState.targetCenter_ model.exploreCenter camera
{ model with orbitCamera = camera
//freeFlyCamera = OrbitState.toFreeFly model.freeFlyCamera.moveSpeed camera // RNO is moveSpeed right here?
}
Expand Down

0 comments on commit 5a961b9

Please sign in to comment.