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

Don't obscure notation when refreshing on a phone #16820

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

johndoknjas
Copy link
Contributor

@johndoknjas johndoknjas commented Jan 20, 2025

This has been a minor issue I've had when playing lichess on my phone in the past, although oddly today I couldn't reproduce it on lichess.org. On gitpod I could though; below are three screenshots that I can get when refreshing the page:

image

image

image

The first one is expected behaviour, while the second slightly cuts off the current move, and the third cuts off way more. Which of these outcomes happens seems to be random, although the third is more rare.

This PR makes it so that the first screenshot is always the final result. If it's initially not, the second autoScroll call a tenth of a second later will shift the notation slightly more to the left.

@schlawg
Copy link
Collaborator

schlawg commented Jan 20, 2025

John, unrelated to this PR but not sure how else to contact you. Do you mind signing up for https://discord.gg/lichess and then DM thibault, or just post something in #general-programming?

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

Successfully merging this pull request may close these issues.

3 participants