mojira.dev
MC-306817

The scrolling position in the trading UI is not synced to the visual scroll bar when there's a large amount of trades

When a custom Data Driven Villager Trade is set to display a larger number of trades, the scroll bar used to view the trades does not stay with the cursor. Instead, while moving ‘down’ it accelerates ahead of the cursor and stops before the bottom of the list has been reached. While moving ‘up’ the cursor moves significantly before the scroll button starts to move upwards.


In the provided datapack, all trades of the Wandering Trader are offered. There are 96.

This was done by editing the ‘amount' value for the following files as shown:

#trade_scoll_slider_bug/data/minecraft/trade_set/wandering_trader/buying.json
{
  "amount": 6.0,
  "random_sequence": "minecraft:trade_set/wandering_trader/buying",
  "trades": "#minecraft:wandering_trader/buying"
}
#trade_scoll_slider_bug/data/minecraft/trade_set/wandering_trader/common.json
{
  "amount": 75.0,
  "random_sequence": "minecraft:trade_set/wandering_trader/common",
  "trades": "#minecraft:wandering_trader/common"
}
#trade_scoll_slider_bug/data/minecraft/trade_set/wandering_trader/uncommon.json
{
  "amount": 15.0,
  "random_sequence": "minecraft:trade_set/wandering_trader/uncommon",
  "trades": "#minecraft:wandering_trader/uncommon"
}

The datapack to reproduce this, as well as a video demonstrating this issue are attached.

Thank you.


Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

Dumb Bunny

eowyn36

Confirmed

Platform

Normal

UI

1.21.11, 26.1 Pre-Release 1

Retrieved