Closed adeel closed 6 years ago
As a side question, is there any publicly exposed API method (or configuration option) that would allow highlighting squares manually (without the semantic association imposed by the lastMove option)?
I ran into this issue as well (niklasf/syzygy-tables.info@129b4a5682ee47fdf302fdfffe39a052bc17462e). It looks like pointer-events is not working properly with mobile devices.
Thanks!
The following configuration settings appear to exhibit a bug in Chessground:
See this url for an example. This code works as expected on Desktop browsers (tested on Firefox and Safari on macOS). However, on mobile browsers (tested on Safari and Firefox on iOS), moving the King on h6 to any of the 3 allowed squares does not work. In particular, the expected alert "move made" does not appear. Making any other allowed move (either capturing the Knight on f5 with the Queen on e6 or the Rook on f2) works fine and produces the expected alert box. The culprits appear to be the "lastMove" and "highlight" settings, which cause the squares h6 and h7 to become highlighted. In short, it seems that any highlighted piece cannot be moved, on mobile browsers.