-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working Clicked and drop? #175
Comments
It would be really great if this was implemented. I see that someone made a pull request to integrate click moves but it wasn't working for me. |
I forked the project and made click-and-drop work with 1.0 using as inspiration this PR: #138 by @PINO It works really well and the modification was very simple. I want to create a PR but because this file https://github.com/oakmac/chessboardjs/blob/master/lib/chessboard.js has a "mixed line endings issue", as you can see from the warning if you try to edit it on Github. I cannot create a PR without causing the entire file to become one big diff. I reported this to Github so we'll see what they say. @oakmac please consider fixing the issue with the mixed line endings, and please consider adding the below modifications as a very simple click-to-move that doesn't break anything and still triggers the same checks as the normal drag-and-drop alternative Anyway here are the modifications.. very simple stuff replace
by
replace
by
replace
by
and voila.. that's it.. works perfectly for me on 1.0 Just download the zip from the website and apply these modifications to the non-minified version |
I follow the instructions, it works to move but not capturing. |
Thanks brother it's working find! |
I have play this example but here only working drag and drop but not working,
see example: https://play.google.com/store/apps/details?id=org.petero.droidfish
move like this
The text was updated successfully, but these errors were encountered: