Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist new selected colours, even after a lost connection. #34

Open
MatthewLM opened this issue Nov 29, 2022 · 0 comments
Open

Persist new selected colours, even after a lost connection. #34

MatthewLM opened this issue Nov 29, 2022 · 0 comments

Comments

@MatthewLM
Copy link
Collaborator

Currently on iOS, when leaving the site and coming back later, the websocket connection is lost. The new pixel selections from pressing "I have made payment" are then removed.

When reconnecting, the selected pixels should be remembered and persist unless the underlying colour has changed.

Each pixel selected by the user will need to be remembered in a separate array. For these pixels, the old colours need to be remembered or otherwise determined. If the pixel colour of the newly downloaded canvas is the same, then the pixel should be set to the user's selected pixel. If the downloaded canvas pixel is different, then the pixel should be set to the new colour from the canvas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant