Sketchbook view scrolls to selected sketch when another sketch is expanded/collapsed #2456
Open
3 tasks done
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Arduino IDE's "SKETCHBOOK" view shows a list of the sketches in the sketchbook folder. When sketches are located under a subfolder, or when the "Show files inside Sketches" preference is enabled, the folder tree can be expanded or collapsed by clicking the ❯ or ˅ icon to the left of the folder name in the view.
🐛 The view scrolls to make the currently selected item visible when the tree control icons are used.
To reproduce
The "Preferences" dialog will open.
The "Preferences" dialog will close.
The item will be highlighted to indicate it is selected.
🐛 The view is scrolled up to the top, making the list item you were interacting with no longer visible.
Expected behavior
The
Arduino IDE version
aa9b10d
Operating system
Operating system version
11
Additional context
I arbitrarily chose to specify the use of the first and last list items in the demo, but the fault will occur with items at any position as long as the selected item is scrolled out of the visible view.
Originally reported by @dougp2 at https://forum.arduino.cc/t/sketch-folder-jumps-to-wrong-place-ide-2-3-2/1271809
Workaround
Click on the list item before clicking on its tree control icon.
Issue checklist
The text was updated successfully, but these errors were encountered: