deiucanta / chatpad

Not just another ChatGPT user-interface!
https://chatpad.ai
GNU Affero General Public License v3.0
1.37k stars 257 forks source link

in safari on iOS the message input field jumps up and down when typing #36

Open kamil-malinski opened 1 year ago

kamil-malinski commented 1 year ago

see video:

https://user-images.githubusercontent.com/68733431/229057738-c6a0fa48-8ef9-4399-8730-b06bca5e9b3c.mp4

cholzkorn commented 1 year ago

also happens in non-fullscreen desktop safari

avelican commented 1 year ago

This also occurs (in iOS Safari) while the message is streaming. So it defeats the whole purpose of the streaming, as you can't actually read anything until the streaming is complete.

Also, in desktop Chrome, streaming forces the scroll to the top (rather than the bottom) of the message, when the message does not fit on the page.

Personally I would suggest disabling scrolling altogether, and allow the user to read as they please. This would probably solve the issues on all platforms.

(ChatGPT auto-scrolls until the user scrolls up, then it disables auto-scrolling, but their implementation is a bit janky too.)

avelican commented 1 year ago

I have fixed this issue (tested on desktop Chrome and iOS Safari) and created a pull request: https://github.com/deiucanta/chatpad/pull/80

ohare93 commented 9 months ago

Same issue on Brave. While the response is coming back the screen jumps up and down crazily. Cannot read until it is done.