InputField with multiline (autoStrech = true) is broken when moving from a line to another

Here is a Playground
Steps to reproduce :

  • Type “Top”, then hit enter 5 or 6 times (adding new lines), type “Bottom”)
  • Move cursor up 3 times with Keyboard (appears not to move)
  • Type “Hello”.

The new typing seems to replace all the line which are under the Caret

Screencast from 19-07-2024 18:42:54

I cannot repro :frowning:

Ah yes, wait. Let me update the repro :

  • Type something then select all (CTRL+A) then delete.
  • Type “Top”, then hit enter 5 or 6 times (adding new lines), type “Bottom”)
  • Move cursor up 3 times with Keyboard (appears not to move)
  • Type “Hello”

Ok now I can repro!

thanks!

Here we are:
Fix text highlight breaking cursor movements by deltakosh · Pull Request #15310 · BabylonJS/Babylon.js (github.com)

1 Like