[MC-12289] Refresh button in the multiplayer menu resets the position of the slider Created: 18/Mar/13  Updated: 03/Mar/22  Resolved: 03/Mar/22

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w11a, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w18c, Snapshot 13w19a, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w39b, Minecraft 1.7.4, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w10b, Minecraft 14w10c, Minecraft 14w11b, Minecraft 14w17a, Minecraft 14w18a, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.8, Minecraft 15w39c, Minecraft 1.11, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 18w02a, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, 1.15.2, 1.16 Pre-release 2, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w29a, 1.16.2, 1.16.4, 20w48a, 20w51a, 1.17
Fix Version/s: None

Type: Bug
Reporter: Oval Assignee: Unassigned
Resolution: Works As Intended Votes: 9
Labels: None

Attachments: PNG File 1.png     PNG File 2.png     PNG File 3.png     PNG File 4.png     File Minecraft_ 1.16.1 2020-07-17 16-31-08.mp4    
Issue Links:
Duplicate
is duplicated by MC-89498 Server List returns to top upon refresh Resolved
is duplicated by MC-206718 Clicking refresh in Multiplayer Resolved
CHK:
Confirmation Status: Confirmed
Category:
UI

 Description   

The bug

The refresh button in the multiplayer server menu always takes you up top of the menu.

How to reproduce

  1. Open your server list and scroll down.
  2. Press the Refresh button.
    It opens a new multiplayer menu and therefore the slider position resets

Code analysis

The following is based on yarn 1.15.2 names.

The reason for this issue is quite simple, as the server list refresh button opens a new multiplayer screen and that causes the servers to refresh. A fix for this issue would be to track the position of the bar and set the bar to that when refreshing. Very basic example:

  private void refresh() {
        this.minecraft.openScreen(new MultiplayerScreen(this.parent));
        //sets slider position
        this.setSlider(previousSliderZ);
        //resets it to 0 after being set with the now old value
        this.previousSliderZ = 0;
    }

Where the setSlider instance, sets the slider to the given z (vertical) and the int (or double) previousSliderZ would be the previous z position of the slider. In theory, should work.



 Comments   
Comment by [Mod] Avoma [ 22/Jun/21 ]

Can confirm in 1.17.

Comment by [Mod] Avoma [ 17/Jan/21 ]

Can confirm in 20w51a.

Comment by pulpetti [ 17/Jul/20 ]

Can confirm for 1.16.1 and 20w29a

Comment by Conem [ 19/Jun/20 ]

Confirmed in 1.16-rc1.

Comment by Conem [ 18/Jun/20 ]

Confirmed in 1.16-pre8.

Comment by Conem [ 17/Jun/20 ]

Confirmed in 1.16-pre7.

Comment by Conem [ 15/Jun/20 ]

Confirmed in 1.16-pre6.

Comment by Conem [ 12/Jun/20 ]

Confirmed in 1.16-pre5. Please, update the ticket.

Comment by Conem [ 11/Jun/20 ]

Confirmed in 1.16-pre4.

Comment by Conem [ 10/Jun/20 ]

Confirmed in 1.16-pre3.

Comment by Conem [ 07/Jun/20 ]

Confirmed for 1.16 Pre-release 2.

Comment by Kraif [ 19/Oct/18 ]

Confirmed for 1.13.2-pre2.

Comment by Kraif [ 17/Oct/18 ]

Confirmed for 1.13.2-pre1.

Comment by Kraif [ 22/Aug/18 ]

Confirmed for 1.13.1.

Comment by Kraif [ 15/Aug/18 ]

Confirmed for 18w33a.

Comment by Kraif [ 08/Aug/18 ]

Confirmed for 18w32a.

Comment by Kraif [ 01/Aug/18 ]

Confirmed for 18w31a.

Comment by Kraif [ 01/Aug/18 ]

Confirmed for 1.13 & 18w30b.

Comment by bob [ 06/Nov/16 ]

Is this still an issue on the latest snapshot 16w44a?

Comment by Matt [ 26/Sep/15 ]

Confirmed in all 1.9 snapshots up to 15w39c

Comment by Itouch2 [ 30/Apr/14 ]

Confirmed for 14w18a

Comment by Itouch2 [ 26/Apr/14 ]

Confirmed for 14w17a

Comment by Itouch2 [ 15/Mar/14 ]

Confirmed for 14w11b

Comment by Itouch2 [ 10/Mar/14 ]

Still in 10c

Comment by Itouch2 [ 06/Mar/14 ]

Still in 10b

Comment by Itouch2 [ 01/Mar/14 ]

Still a concern in 1.7.4/5 and 1.8

Comment by Lazini [ 18/Mar/13 ]

Great!

Comment by Anon Ymus [ 18/Mar/13 ]

Confirmed.

Comment by Hayden Cole [ 18/Mar/13 ]

Yeah this one's been around since multiplayer began, they really need to fix it.

Generated at Sun Jan 12 12:30:26 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.