JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.66k stars 2.59k forks source link

When message in AI chat is clicked, it scrolls down #12232

Open InAnYan opened 4 days ago

InAnYan commented 4 days ago

JabRef version

Latest development branch build (please note build date below)

Operating system

GNU / Linux

Details on version and operating system

It happens on every OS

Checked with the latest development build (copy version output from About dialog)

Steps to reproduce the behaviour

  1. Have a long conversation with AI.
  2. Scroll up.
  3. Try to select text in text area. (Maybe user found AI reply interesting).

Chat scrolls down.

This is a bug from my GSoC 2024 project. It is connected to auto-scrolling-down. Basically, whenever a "relayout" event is triggered, it scrolls down. Chat behaves correctly when you send a new message -- it scrolls down, but it should not scroll down when I click on some old message (actually any message will trigger that event).

This issue might be complex, as I tried many techniques for scrolling down from the Internet, and none of them worked precisely. Maybe whole AI chat UI refactoring is needed (e.g. use CSS for layout instead of properties of Nodes).

Appendix

No response