halloy icon indicating copy to clipboard operation
halloy copied to clipboard

Text entry box jumps when placing cursor

Open Daeraxa opened this issue 2 years ago • 1 comments

  • Type something in the text entry (Send message...) box that exceeds its length so that it scrolls.
  • Click somewhere to edit a previous word in that box
  • Text will scroll in order to try and place the cursor as far right as it will go.

halloy

The text should remain still so that where the cursor is placed is where it remains.

Daeraxa avatar Jul 13 '23 18:07 Daeraxa

The same happens when you move cursor with arrows, it always keeps cursor at far end of the layout. The text input widget will need to be improved upstream to have the desired behavior.

Edit: I did a cursory look at this and it's a super hard one to account for. The state you'd need to maintain to make it work is super brittle to layout / text changes.

tarkah avatar Jul 13 '23 20:07 tarkah