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: The position being undefined causes an error with position.x. #29180

Open
ljgeneral opened this issue Aug 20, 2024 · 0 comments
Open

Comments

@ljgeneral
Copy link

Description

image During dragging, there is an occasional issue where the position is undefined. This has occurred with both the mouse and the touchpad.

Reproduction steps

No consistent reproduction path has been found, but it has occurred many times.

Code

if(position){
onTouchStart({ pointerId, pageX: position.x, pageY: position.y });
}

Live example

Screenshots

No response

Version

^0.161.0

Device

Desktop

Browser

Chrome

OS

Windows, MacOS

@Mugen87 Mugen87 changed the title The position being undefined causes an error with position.x. OrbitControls: The position being undefined causes an error with position.x. Aug 20, 2024
@Mugen87 Mugen87 added the Addons label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants