lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.05k stars 260 forks source link

if piece is dragged and then released on original square, square should not be selected #115

Closed isaacl closed 3 years ago

isaacl commented 5 years ago

Another edge case that can lead to accidental selection of a square:

If the user initiates a drag of a piece and moves it somewhere, but changes their mind and ends the drag back on the original square, the square is selected. Instead the square should not select.

isaacl commented 5 years ago

This one is still open!

The idea is that chessground should track if the drag moved far enough away from the original location, and if so, consider the mouse movement a drag and not a click. If the mouse is ultimately released on the original square, chessground should not select that square

isaacl commented 5 years ago

(But of course it’s not clear if we want this; I’m interested in your thoughts)

ornicar commented 5 years ago

Why not, if the implementation is cheap...