Opened 6 years ago
Closed 6 years ago
#4987 closed defect (fixed)
Update Scroll Bug In Player/GameList In Lobby
Reported by: | fpre_O_O_O_O_O_O | Owned by: | fpre_O_O_O_O_O_O |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 23 |
Component: | UI & Simulation | Keywords: | |
Cc: | Patch: | Phab:D1232 |
Description (last modified by )
When playerlist receives update due to changed playerlist when player joins or leaves, the selected player from the list, if one is selected, should be kept consistend after the list is updated, so it gets reselected in updatePlayerList() in lobby.js, if it is still in the list.
The problem is that we currently loose with it our current scroll view due to UpdateAutoScroll() from CList.cpp with the selection change.
So to keep the selected player consistent on playerlist update, while also keeping the scroll view, we need an unscrolled selection attribute in the gui list, that just sets the selected item in the list without autoscrolling to it.
Same for gamelist update.
Code is ready to commit.
Change History (8)
comment:1 by , 6 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 6 years ago
Description: | modified (diff) |
---|
comment:3 by , 6 years ago
comment:5 by , 6 years ago
Why isn't the commit or ticket referenced that introduced the bug? r18935
comment:6 by , 6 years ago
I don't think anyone will add generic support for calling GUI object type specific C++ functions from JS, especially if it's only used for this barely noticeable feature.
So there are only the two options to work with what we have or to remove the feature completely.
Since
- the feature is kind of fixing a defect (getting annoyed by the user selecting an item indirectly but intentionally without the item becoming focused) and
- what we have (settings system) is sufficient to implement conditional autofocusing.
We could add a property autoscroll
that could only be set from JS and that is immediately set to false
if it was set to true and calls the autoscroll C++ function.
comment:7 by , 6 years ago
Patch: | https://code.wildfiregames.com/D1232 → Phab:D1232 |
---|---|
Priority: | Release Blocker → Must Have |
Perhaps we could just set every ticket to alpha 23 that we have a WIP patch for?