Inconsistency with shape clearing
Left clicking an empty square does not always clear away the board markings, for example, arrows and circles. The behavior seems to alter when a game is on-going, and when it is your opponent's turn to move. Sometimes the markings are cleared after clicking twice, sometimes it feels like it occurs with a delay.
To reproduce this. Spam many arrows on a game against Stockfish, then left click a square. Repeat this behavior for a few instances, then notice that the arrows sometimes disappear and sometimes they do not.
I have a feeling that this issue started today.
This issue would punish/inconvenience players that are prone to creating shapes during their games, accidentally or intentionally. As having many visible shapes during a bullet game is a bit distracting.
https://github.com/lichess-org/chessground/pull/352#issuecomment-3408043343
The previous behavior felt more intuitive. ChessBase had similar functionality with their markings disappearing from unintentional clicks.
If people do find the current behavior useful for studies, then is that enough for a having a separate setting?
For example:
https://github.com/lichess-org/lila/issues/18423
to reproduce you need
- click on one of your pieces to clear the
- drag at least 1px while you click
then it doesn't register the clear. I suppose some pointers are more draggy than others, that's why everyone has a different experience.
It should clear when the drag is < config.draggable.distance, that should fix it for all.
@johndoknjas will you handle this or should I take over?
@ornicar I can handle it unless you'd prefer to!