Page 1 of 1

GUI: Allow scrolling on closed drop down fields

Posted: Wed May 08, 2019 1:12 pm
by luziferius
TL;DR
Allow using the "scroll up" and "scroll down" action (typically mapped to the mouse wheel) on closed drop down fields to switch between entries.

What?
When the mouse is placed on a closed drop down field, allow using the mouse wheel to switch the currently selected item.
Scroll up to select the previous item in the list, scroll down to select the next item in the list.

Why?
Because it is convenient to just use the scroll wheel on the mouse to get a quick overview over the effects of the possible choices.
For example: In the New Game GUI, you could scroll over the map generator preset drop down menu to switch between presets. You can see at a glance, how each preset affects the currently opened tab.

Currently:
  1. Move the mouse to the drop down field
  2. Click it
  3. Possibly scroll the large list of choices
  4. Move the mouse down to the next item
  5. Click the desired item
  6. Repeat from 1.
Proposed:
  1. Move the mouse over the drop down field
  2. Slowly scroll down/up using the mouse wheel. Each scroll event selects the previous/next item in the list.
Most GUI toolkits used on Linux desktops implement this, but I think, Windows does not.
I’ve recorded a small screencast video, using 0ad RTS as an open source reference game implementing the described logic.
The recording below is from the New Game screen. I want to find a map I like layout-wise or visually.
In the first seconds I use the map selector drop down menu to switch between maps. This is the same procedure as currently required in Factorio.
Then I start using the mouse wheel on the same drop-down. I can keep the cursor at it’s position and just scroll and watch the preview image change.
Video hidden here
Edit: If the video does not play nicely, you can download the webm video and use a local player, or directly open the URL using VLC player.

Re: GUI: Allow scrolling on closed drop down fields

Posted: Wed May 08, 2019 7:28 pm
by Koub
I don't know if it's something on my side, but the video is 1'15" of motionless black, with no sound. :D
[Edit] Works with Firefox, Must have some plugin that blocks it onChrome I guess, sorry for the disturbance.

Re: GUI: Allow scrolling on closed drop down fields

Posted: Thu May 09, 2019 3:42 am
by DaleStan
It works for me, in Chrome, Waterfox, and Edge, but not in IE. Wikipedia suggests that Safari and IE both require third-party plugins.