Skip to content

Commit

Permalink
🐛 移動のロジック間違っていた
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Jan 25, 2025
1 parent 6d808db commit 9fcc3a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/pixi/components/OtherExplorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const OtherExplorer: React.FC<Props> = ({ explorer, previousPosition }) => {
}
setPosition((pos) => {
const diff = {
x: pos.x - previousPosition.x,
y: pos.y - previousPosition.y,
x: targetPosition.x - pos.x,
y: targetPosition.y - pos.y,
};
if (Math.abs(diff.x) < 3 && Math.abs(diff.y) < 3) {
return targetPosition;
Expand Down

0 comments on commit 9fcc3a5

Please sign in to comment.