Cringers / crossword

crossword
0 stars 0 forks source link

Letters don't get overwritten when box is selected from its right half #51

Open avere001 opened 2 years ago

avere001 commented 2 years ago

Expected behavior

Clicking anywhere in a box and typing will replace the letter in that box

Actual behavior

Letters only get replace if the box was selected by clicking on the left side of the lettter

Steps to reproduce:

Step 1: fill first row with A

image

Step 2: Click to the right of the first A (location indicated by a red circle), and type B five times

image

The first A will not get replaced and the row will now show ABBBB instead of the expected BBBBB

Step 3: Click to the left of the A (location indicated by a red circle) and type C five times

Screenshot 2022-04-30 142026

The row will now show CCCCC as expected

normanjli commented 2 years ago

We can change this behaviour by just always replacing letters on input

we could also highlight the input so it will replace it as you type