Skip to content

Conversation

@HaonRekcef
Copy link
Contributor

Fixes #471

I've modified the graph such that it is clickable. It solely depends on the x-value of the touch input. Maybe there is more sophisticated method that involves the distance on the y -axis that works better.
However I observed that the website implementation also considers only the x-value.

Also I changed the graph type to be non-curved. The current curved representation sometimes leads to the maximum not being on a move itself.

To illustrate the difference, please refer to the following videos:

isCurved: true
curved.mp4
isCurved: false
not.curved.mp4

While implementing these changes, I noticed a small "bug." If one promotes a line other than the game to the mainline, the graph still jumps around when pressing it. I'm uncertain about what the intended behavior in this scenario should be. On the website the same "bug" exists. Probably we can just ignore that.

@ZTL-UwU
Copy link
Contributor

ZTL-UwU commented Jan 18, 2024

For longer games the curve might be fine. Should we set a threshold between the curve and no curve or just keep everything not curved?

@HaonRekcef
Copy link
Contributor Author

I also like the curved one more, it looks bit more forgiving.

curved

curved

not curved

sharp

But I do not like that it always goes up before going down, look at the end of the game.

@veloce
Copy link
Contributor

veloce commented Jan 18, 2024

If we make it clickable it has to be non curved I guess.

For the graph that is still tappable when non on the mainline, I think it's not a problem, you'd just go back to the mainline.

Copy link
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@veloce veloce merged commit f5567af into lichess-org:main Jan 18, 2024
@HaonRekcef HaonRekcef deleted the clickable_acpl_chart branch January 18, 2024 10:01
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.

Improve navigation in game analysis

3 participants