typedb-studio
typedb-studio copied to clipboard
List scrolling when clicking on element close to a border
Description
Works for a file list in Project directory file explorer and for types in the Type Browser.
When you click on a file or a type close to a top or bottom border of the panel, but list contains more elements, the list will automatically scroll to show the selected element closer to the middle of the panel.
That's not only annoying but also messes up with double-clicking. Any attempt to double-click on an element close to a border, but not to a list end/start will end up clicking once on the selected element and the second time on the element that got moved to its position.
Environment
- TypeDB version: 2.18
- OS of TypeDB server: 12.6.7
- Studio version: 2.18
- OS of Studio: 12.6.7
- Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Open a Project folder with many files
- Adjust the size of the Project panel to NOT fit all of them, so the scroll bar appears
- Scroll to top and click on the last element shown in the panel (but not the last in the list)
Expected Output
The file will be selected, but the list will not move.
Actual Output
The list will scroll down a bit to adjust the position of the selected element not to be the last in the panel.
Additional information
I can confirm IntelliJ does not auto-scroll a navigator when clicking an element on its border.