lichess-org/chessground

Detect any click on the board

gabrilator opened this issue · 2 comments

Hey! Thanks for the amazing work.
Is there a way to detect any click on the board? this would be super helpful for animations, for example, that would reset when the user clicks on the board.

Cheers!

Yes. the select event. However there is a bug where it fires twice if you click an unoccupied square on mobile.

Anupya commented

Seems like this issue can be closed?