You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a piece is selected and dragged outside the chessboard (though the piece doesn't actually go outside), if the mouse is clicked anywhere outside the chessboard and then moved back inside, the piece remains attached to the mouse. When clicked anywhere on the chessboard, the piece is dropped at that position, regardless of whether the move is legal or not. The piece should return to its original position if the mouse is clicked outside the chessboard.
To Reproduce
Steps to reproduce the behavior:
Select a piece.
Drag the piece outside the chessboard (without letting go of the mouse).
Click anywhere outside the chessboard.
Move the mouse back inside the chessboard.
Click anywhere on the chessboard to drop the piece (even in an illegal position).
Expected behavior
The piece should not remain attached to the mouse once clicked outside the chessboard. If the mouse is clicked outside the chessboard, the piece should return to its original position, and no piece should be able to be dropped unless it’s a legal move.
Screenshots
Additional context
This issue could be resolved by implementing a separate logic to reset the piece's position when the mouse click occurs outside the chessboard area. Let me know if you’d like to discuss the specifics of implementing this logic before proceeding.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a piece is selected and dragged outside the chessboard (though the piece doesn't actually go outside), if the mouse is clicked anywhere outside the chessboard and then moved back inside, the piece remains attached to the mouse. When clicked anywhere on the chessboard, the piece is dropped at that position, regardless of whether the move is legal or not. The piece should return to its original position if the mouse is clicked outside the chessboard.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The piece should not remain attached to the mouse once clicked outside the chessboard. If the mouse is clicked outside the chessboard, the piece should return to its original position, and no piece should be able to be dropped unless it’s a legal move.
Screenshots
Additional context
This issue could be resolved by implementing a separate logic to reset the piece's position when the mouse click occurs outside the chessboard area. Let me know if you’d like to discuss the specifics of implementing this logic before proceeding.
The text was updated successfully, but these errors were encountered: