Open prologic opened 7 years ago
Hi! I'm also dealing with that problem. Could you solve it?
@prologic @alexvilanovab Hi, I have found solution for the problem. In the file "chessboard.js", go to line number 694, 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 if the clicked piece.
Solution is that simply replace $(this).context.id with this.id or $(this).attr("id")
Even below mentioned project is using this library and they have also mentioned there that "The chess pieces are not moving on touch devices (tablets and smartphones)." https://github.com/LabinatorSolutions/BoldChess-Stockfish-Web-GUI
I am new to GitHub. Please someone update the chessboard.js and chessboard.min.js as i suggested.
Trying to do some pretty simple stuff here and following code snippets from the examples and running into an exception I don't understand:
Looking at L694 its not really clear to me what
$(this).context
is suppose to be referencing here?