We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160c370 commit 30cf807Copy full SHA for 30cf807
1 file changed
common/webapp/src/js/controls/freeflight/FreeFlightControls.js
@@ -152,7 +152,17 @@ export class FreeFlightControls {
152
153
document.body.requestFullscreen()
154
.finally(() => {
155
- this.target.requestPointerLock();
+ // try with unadjustedMovement first and fall back without it if not supported
156
+ this.target.requestPointerLock({
157
+ unadjustedMovement: true
158
+ })
159
+ .catch(err => {
160
+ if (err.name === "NotSupportedError") {
161
+ return this.target.requestPointerLock();
162
+ } else {
163
+ throw err;
164
+ }
165
+ });
166
});
167
}
168
0 commit comments