Conversation
…tas. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Haven't tested mobile yet. |
|
Another option would be to change the lookAt based on the delta from the pointerdown position. |
Just tested the links on a Pixel 8a with Chrome and the controls don't work. The camera barely reacts on touch input. You just see a single tiny change in orientation when tapping on the display. I would expect the camera moves towards the tapped location as long as you hold down the finger. |
|
Indeed, mobile is broken. Will fix later. |
Instead of using movementX/movementY deltas, the rotation speed is now based on the distance from the pointerdown position. This works like the original center-based approach but anchored to where you pressed. Also restores click-to-move-forward/backward and fixes mobile touch support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Actually, I have just tested the current So it's good |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
This new interaction model really feels better than the previous one. Especially on mobile it feels "fixed". I've noted this change in the migration guide with a link to this PR so users are informed. |
|
Thank you! |
Description
Changed the interaction model so the camera orientation is controlled by dragging from the press point. The further you drag from where you pressed, the faster the camera rotates — like the original center-based approach but anchored to your press position instead of the screen center. This also adds mobile touch support via pointer events and uses
setPointerCaptureto handle pointer release outside the window.activeLookandhandleResize()are no longer needed — the former has been removed and the latter replaced with a deprecated stub.http://raw.githack.com/mrdoob/three.js/controls/examples/webaudio_sandbox.html
http://raw.githack.com/mrdoob/three.js/controls/examples/webgl_geometry_minecraft.html
http://raw.githack.com/mrdoob/three.js/controls/examples/webgl_geometry_terrain.html
http://raw.githack.com/mrdoob/three.js/controls/examples/webgl_shadowmap_performance.html