jayadehart / jayadehart/TilePlace-Frontend

Cursor add on tile doesn't align itself with mouse position dynamically

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Right now the code that aligns the cursor tile showing your active color is hard coding the x and y axis offset. See highlighted code. Need to find a way to center the tile on the mouse that responds dynamically to screen size.

```

setMousePos({ x: e.pageX - 763, y: e.pageY - 433 });

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the code containing setMousePos({ x: e.pageX - 763, y: e.pageY - 433 }) and inspect how the cursor tile is positioned. Replace the hard-coded offsets with positioning that centers the tile relative to the mouse across different screen sizes, then verify the alignment at multiple viewport dimensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.