Update target look input handling to use full movement data

This commit is contained in:
2026-04-25 16:30:08 +02:00
parent 0601b46f8c
commit b4a533fe01

View File

@@ -537,12 +537,13 @@ export class FirstPersonNavigationController implements NavigationController {
return; return;
} }
const targetLookConsumed = const targetLookResult =
this.context?.handleRuntimeTargetLookInput?.( this.context?.handleRuntimeTargetLookInput?.({
event.movementX > 0 ? 1 : event.movementX < 0 ? -1 : 0 horizontal: event.movementX,
) ?? false; vertical: -event.movementY
}) ?? null;
if (targetLookConsumed) { if (targetLookResult?.activeTargetLocked === true) {
return; return;
} }