Skip to content

Last move highlighting disappears when flipping board orientation #11

@mcmd

Description

@mcmd

When using the "Flip Orientation" button, the green highlighting of the last move (from and to squares) disappears. This is because the board redraw doesn't preserve the highlighting state.

Expected Behavior:
The move highlighting should persist when flipping the board orientation, just as it does when initially loading a position with move parameters in the URL.

Reproduction Steps:

  1. Make a move on the board
  2. Click the "Flip Orientation" button
  3. Observe that the green highlighting disappears

See a video here:

This can be fixed by reapplying the highlighting after the board flip operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions