Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

refactor: pixel rendering when playing #6

Open
3 tasks
mariz-ov opened this issue Sep 20, 2023 · 0 comments
Open
3 tasks

refactor: pixel rendering when playing #6

mariz-ov opened this issue Sep 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mariz-ov
Copy link
Contributor

Description

When scrolling horizontally or vertically in the pixels page, it should automatically refetch the state of the pixels the user should be seeing. Right now it's getting a preset amount of pixels instead of offsetting according to a user's current location in the board.

Files

/web/src/hooks/usePaintedPixels.ts
/web/src/components/Main.tsx

Tasks

Include specific tasks in the order they need to be done in. Include links to specific lines of code where the task should happen at.

  • Calculate the offset from the scroll
  • Refactor usePaintedPixels to get only the necessary pixels
  • Remake the Main component and its children to allow scrolling and positioning calculation
@mariz-ov mariz-ov added the enhancement New feature or request label Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants