Skip to content

Remember menu scroll position #747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
per1234 opened this issue Jan 12, 2022 · 0 comments
Open

Remember menu scroll position #747

per1234 opened this issue Jan 12, 2022 · 0 comments
Assignees
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@per1234
Copy link
Contributor

per1234 commented Jan 12, 2022

Describe the current behavior

When the contents of a menu exceeds the display height, the user can scroll down or up to access all elements. These scrollable menus currently always open scrolled all the way to the top, regardless of the scroll position the last time the user accessed it.

To reproduce

  1. Cause one of the IDE menus to contain more items than fits in the display height.
    This can be done by any of the following:
    • Create many sketches in the sketchbook folder (File > Sketchbook menu)
    • Install many libraries (File > Examples menu, Sketch > Include Libraries menu)
    • Install a library with many examples (File > Examples > LIBRARY_NAME menu)
    • Install many boards platforms (Tools > Board menu, "Select Other Board & Port" menu)
    • Install a platform with many boards (Tools > Board > PLATFORM_NAME menu, "Select Other Board & Port" menu)
  2. Open the large menu.
  3. Scroll the menu down and take note of its position.
  4. Close the menu.
  5. Open the large menu again.

Notice that the menu is now scrolled to the top and you will need to repeat the scroll to reach the former position.

Describe the request

It is common to revisit the same menu item repeatedly. When that item is outside the display height, the user must scroll to it each time.

For this reason, it will be a better user experience for the menu scroll position to be persistent at least for the session.

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc3
    Date: 2021-12-22T15:46:56.004Z
    CLI Version: 0.20.2 [13783819]

Additional context

The requested behavior is how the classic Arduino IDE works.


Originally reported by @hpssjellis at:
https://github.com/hpssjellis/my-examples-for-the-arduino-portentaH7/tree/master/ide2.0#:~:text=v2.0%20always%20puts%20you%20at%20the%20top%20of%20the%20examples

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants