typedb-studio icon indicating copy to clipboard operation
typedb-studio copied to clipboard

List scrolling when clicking on element close to a border

Open izmalk opened this issue 1 year ago • 1 comments

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

  1. TypeDB version: 2.18
  2. OS of TypeDB server: 12.6.7
  3. Studio version: 2.18
  4. OS of Studio: 12.6.7
  5. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Open a Project folder with many files
  2. Adjust the size of the Project panel to NOT fit all of them, so the scroll bar appears
  3. 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

izmalk avatar Jul 10 '23 17:07 izmalk

I can confirm IntelliJ does not auto-scroll a navigator when clicking an element on its border.

alexjpwalker avatar Aug 01 '23 11:08 alexjpwalker