mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-18 08:17:23 +00:00
fix: oops removed delta
This commit is contained in:
parent
fcb389b86d
commit
3cb787fc72
|
|
@ -168,6 +168,7 @@ const SkinViewer = memo(function SkinViewer({ username, setUsername, playPressSo
|
|||
const onMouseUp = () => { isDragging = false; };
|
||||
const onMouseMove = (e: MouseEvent) => {
|
||||
if (isDragging) {
|
||||
const delta = (e.clientX - previousMousePosition.x) * 0.01;
|
||||
playerGroup.rotation.y += delta;
|
||||
previousMousePosition = { x: e.clientX, y: e.clientY };
|
||||
requestRenderRef.current?.();
|
||||
|
|
|
|||
Loading…
Reference in a new issue