-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacBook trackpad panning and orbit are slow in 3D viewport #75855
Comments
As a temporary workaround for the slow orbiting, you might benefit from increasing your trackpad scroll speed in system settings. As for panning, there is no sensitivity option, so it might be worth to add a "Translation sensitivity" slider, something like: (Can also increase the orbit sensitivity maximum for cases like these) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index 8634b94858..e0cce43da1 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -662,7 +662,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
_initial_set("editors/3d/navigation/warped_mouse_panning", true);
// 3D: Navigation feel
- EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/orbit_sensitivity", 0.25, "0.01,2,0.001")
+ EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/orbit_sensitivity", 0.25, "0.01,100,0.001")
+ EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/translation_sensitivity", 0.25, "0.01,100,0.001")
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/orbit_inertia", 0.0, "0,1,0.001")
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/translation_inertia", 0.05, "0,1,0.001")
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/zoom_inertia", 0.05, "0,1,0.001")
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index 4b65ce7304..073c85b6c9 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -2325,8 +2325,9 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
void Node3DEditorViewport::_nav_pan(Ref<InputEventWithModifiers> p_event, const Vector2 &p_relative) {
const NavigationScheme nav_scheme = (NavigationScheme)EDITOR_GET("editors/3d/navigation/navigation_scheme").operator int();
+ const real_t translation_sensitivity = EDITOR_GET("editors/3d/navigation_feel/translation_sensitivity");
- real_t pan_speed = 1 / 150.0;
+ real_t pan_speed = 4 / 150.0 * translation_sensitivity;
if (p_event.is_valid() && nav_scheme == NAVIGATION_MAYA && p_event->is_shift_pressed()) {
pan_speed *= 10;
} |
@geminax Thanks! Your Should we get this PR started (if you haven't already)? Update: |
Godot version
4.0.2.stable
System information
M1 MacBook Pro 2021, Ventura 13.3.1
Issue description
Panning and orbiting in the 3D viewport with the trackpad on my MacBook Pro are very slow. Increasing "Orbit Sensitivity" in the editor settings to 2.0 (the maximum) helps a bit, but then when I go back to using a mouse, the sensitivity is extremely high.
I checked issue #72242, which was resolved, but it seems like those changes only affected the 2D viewport behavior.
Here is a video of the behavior I'm seeing:
Screen.Recording.2023-04-09.at.09.43.43.mov
Steps to reproduce
Minimal reproduction project
This can be reproduced with a new empty project.
The text was updated successfully, but these errors were encountered: