AndraxDev / speak-gpt

Your personal voice assistant based on OpenAI ChatGPT.
https://play.google.com/store/apps/details?id=org.teslasoft.assistant
Apache License 2.0
286 stars 59 forks source link

Bug: in the assistant the scroll follows the text cursor #124

Closed thiswillbeyourgithub closed 5 months ago

thiswillbeyourgithub commented 5 months ago

Hi,

I've been having a weird issue with the assistant for a while now but didn't have the time to report it.

Basically when the keyboard is raised, it automatically scrolls to meet the text cursor. I never saw this is any other app and it's problematic because you can't see the rest of the text if your modifying a line that is not the last.

  1. If I manually type a long message with the keyboard, it makes it awkward to read the text if I want to correct some words in a previous line.
  2. This behavior is not present in the chat window, just in the assistant (this is to be expected I guess but might help you troubleshoot)
  3. If I use whisper to dictate text, when whisper finishes the cursor first appears before the text instead of after. This to me looks like a bug itself, but because of the scrolling but it makes it awkward to use because you can't directly read the whole text that whisper typed for you.
AndraxDev commented 5 months ago

Due to behaviour of BottomSheetDialog I can't fix this bug, but I have increased height of message field and enabled scrolling. Additionally when you send text to SpeakGPT cursor will be set to the end of the message.