Skip to content
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

OrbitControls.js._handleTouchMoveDolly() error "Cannot read properties of undefined (reading 'x')" #30377

Open
andreasrosdal opened this issue Jan 22, 2025 · 1 comment

Comments

@andreasrosdal
Copy link
Contributor

Description

This Javascript error in OrbitControls.js occurs frequently on www.freecivx.net running Three.js r173.

Uncaught TypeError: Cannot read properties of undefined (reading 'x') Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36

https://github.com/mrdoob/three.js/blob/dev/examples/jsm/controls/OrbitControls.js#L1015

Stacktrace:
OrbitControls._handleTouchMoveDolly()@https://www.freecivx.net/javascript/webgl/libs/OrbitControls.js?ts=2025-01-21T19:19:36Z:1015:37 OrbitControls._handleTouchMoveDollyPan()@https://www.freecivx.net/javascript/webgl/libs/OrbitControls.js?ts=2025-01-21T19:19:36Z:1037:31 OrbitControls.onTouchMove()@https://www.freecivx.net/javascript/webgl/libs/OrbitControls.js?ts=2025-01-21T19:19:36Z:1496:9 OrbitControls.onPointerMove()@https://www.freecivx.net/javascript/webgl/libs/OrbitControls.js?ts=2025-01-21T19:19:36Z:1188:8 Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36

Reproduction steps

NA

Code

NA

Live example

www.freecivx.net

Screenshots

No response

Version

r173

Device

No response

Browser

Chrome

OS

Linux

@andreasrosdal andreasrosdal changed the title OrbitControls.js error "Cannot read properties of undefined (reading 'x')" OrbitControls.js._handleTouchMoveDolly() error "Cannot read properties of undefined (reading 'x')" Jan 22, 2025
@Mugen87
Copy link
Collaborator

Mugen87 commented Jan 22, 2025

What are the steps to reproduce the issue with misc_controls_orbit?

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

No branches or pull requests

2 participants