LabinatorSolutions / stockfish-chess-web-gui

Responsive chess web GUI to play against the Stockfish 16 chess engine. Multiple web GUI implementations have also been included.
https://labinatorsolutions.github.io/stockfish-chess-web-gui/
GNU Affero General Public License v3.0
58 stars 40 forks source link

The chess pieces are not moving on touch devices (tablets and smartphones) #1

Closed sudeshchouhan closed 5 years ago

sudeshchouhan commented 5 years ago

@LabinatorSolutions Hi, I have found solution for the issue. In the file "chessboard-caustique-min.js", search $(this).context.id, it is trying to get the id of the clicked piece. It is using "context" but context is depreciated in JQuery version 3.0 and onward. See https://api.jquery.com/context/ So now it's not able to get id of the clicked piece. Solution is that simply replace $(this).context.id with this.id or $(this).attr("id") I am new to GitHub. Please someone update the chessboard-caustique-min.js as i suggested.

Please note that this is a library by https://github.com/caustique/chessboard-js It would be great if someone fix the bug there also.

LabinatorSolutions commented 5 years ago

Thank you @sudeshchouhan for your contribution and welcome to GitHub! The issue has been fixed already based on your comment.

The repository at (https://github.com/caustique/chessboard-js) is totally inactive. The last commit was 6 years ago. The maintainer of that repository might not be interested to maintain the project anymore. We will do our best!

If you like to contribute more to this open source project, please check the main page for the list of remaining issues and possible improvements.

All the best!