Skip to content

Conversation

@TylerSelden
Copy link
Contributor

Related issue: #32442

Description

On touchscreen devices, specifically mobile ones like iOS and Android phones, the editor's pinch zoom is extremely over-sensitive, making the editor virtually unusable.

My fix was to add a new Control section in the editor's settings, with a numerical Zoom Speed option to control the editor's zooming speed globally (not just for touch devices). This replaces the previously used scope.zoomSpeed found in
EditorControls.js, which was defined and referenced only once.

@TylerSelden TylerSelden marked this pull request as ready for review December 2, 2025 16:58
this.enabled = true;
this.center = new THREE.Vector3();
this.panSpeed = 0.002;
this.zoomSpeed = 0.1;
Copy link
Collaborator

@Mugen87 Mugen87 Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property should not be removed. Besides, editor.config should not be evaluated in this file. Do it at the place where the instance of EditorControls is created (which is Viewport.js) and assign the value to EditorControls.zoomSpeed.

@TylerSelden TylerSelden force-pushed the editor-control-settings branch from e14cc79 to dc8c362 Compare December 2, 2025 23:12
@TylerSelden TylerSelden changed the title Editor: Add zoom speed option to settings Editor: Scale down touchscreen zoom speed Dec 2, 2025
@TylerSelden
Copy link
Contributor Author

At @mrdoob 's suggestion, I've removed the new settings section altogether, and just manually scaled the zoom speed down by 90%, which seems to be a good speed.

@mrdoob mrdoob added this to the r182 milestone Dec 2, 2025
@mrdoob mrdoob merged commit 06a4e97 into mrdoob:dev Dec 2, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants