chatpad icon indicating copy to clipboard operation
chatpad copied to clipboard

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

Open kamil-malinski opened this issue 2 years ago • 4 comments

see video:

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

kamil-malinski avatar Mar 31 '23 07:03 kamil-malinski

also happens in non-fullscreen desktop safari

cholzkorn avatar Jun 20 '23 11:06 cholzkorn

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.)

a-n-d-a-i avatar Aug 16 '23 14:08 a-n-d-a-i

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

a-n-d-a-i avatar Aug 16 '23 15:08 a-n-d-a-i

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

ohare93 avatar Jan 18 '24 10:01 ohare93