From 409fb60b6c38d6c8be752a41a71ebefa39d8fbef Mon Sep 17 00:00:00 2001 From: yyc <395976266@qq.com> Date: Sat, 9 Mar 2019 19:52:59 +0800 Subject: [PATCH] feat(focus): increase wheel speed --- src/core/utils/engine/job/init/initHotKeysJob/FocusUtils.re | 2 +- test/integration/job/initHotKeysJob_test.re | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/utils/engine/job/init/initHotKeysJob/FocusUtils.re b/src/core/utils/engine/job/init/initHotKeysJob/FocusUtils.re index c481d3e59..873ef4bb6 100755 --- a/src/core/utils/engine/job/init/initHotKeysJob/FocusUtils.re +++ b/src/core/utils/engine/job/init/initHotKeysJob/FocusUtils.re @@ -1,6 +1,6 @@ let _calcMoveSpeed = distance => distance /. 100.; -let _calcWheelSpeed = distance => distance /. 100.; +let _calcWheelSpeed = distance => distance /. 50.; let _setArcballCameraControllerFocusRelatedAttribute = (arcballCameraController, (distance, target), engineState) => { diff --git a/test/integration/job/initHotKeysJob_test.re b/test/integration/job/initHotKeysJob_test.re index dfa1770aa..1bc4e26c4 100755 --- a/test/integration/job/initHotKeysJob_test.re +++ b/test/integration/job/initHotKeysJob_test.re @@ -345,7 +345,7 @@ let _ = ) |> StateLogicService.getEngineStateToGetData |> FloatTool.truncateFloatValue - |> expect == 0.226; + |> expect == 0.451; }); });