1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 10:35:40 +02:00
This commit is contained in:
syuilo
2026-04-28 15:54:41 +09:00
parent 836de1bb28
commit 11e55d8fe8
3 changed files with 19 additions and 16 deletions

View File

@@ -219,6 +219,7 @@ const resolutionAutoValue = computed<number>(() => deviceKind !== 'desktop' ? 0.
const resolution = computed<number>(() => resolutionRaw.value ?? resolutionAutoValue.value);
const useVirtualJoystick = isTouchUsing && (deviceKind === 'smartphone' || deviceKind === 'tablet');
//const useVirtualJoystick = true;
const wasdVec = { x: 0, y: 0 };
const pointerVec = { x: 0, y: 0 };
@@ -426,10 +427,11 @@ onMounted(async () => {
timeoutId = window.setTimeout(() => {
timeoutId = null;
pointerVec.x = 0;
pointerVec.y = 0;
controller.setCameraRotateVector(pointerVec);
controller.setCameraRotateVector({
x: 0,
y: 0,
});
}, 10);
};