Port map: the merchant scroller's press starts the drag

MerchantScreen.mouseClicked said clicking the scroller does not start a
drag. Game::merchant_click sets dragging inside the 139-px track past
seven offers and Game::merchant_drag follows the pointer, so the note
now describes that.
This commit is contained in:
MSedgeMC committed 2026-11-02 15:44:34 +00:00
1 parent 0cf1b3d209
commit 0b1c2fbb0f
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ MerchantScreen.extractButtonArrows inline crates/horizon-client/src/game/trading
MerchantScreen.extractAndDecorateCostA inline crates/horizon-client/src/game/trading.rs::Game::draw_merchant discount: base count struck through, new count drawn (merchant.rs cost_a)
MerchantScreen.mouseScrolled port crates/horizon-client/src/game/trading.rs::Game::merchant_scroll gap: minor: one offer per wheel step; vanilla uses the float scroll amount
MerchantScreen.mouseDragged port crates/horizon-client/src/game/trading.rs::Game::merchant_drag the scroller takes presses only past seven offers and picks the nearest one
MerchantScreen.mouseClicked port crates/horizon-client/src/game/trading.rs::Game::merchant_click gap: player: clicking the scroller does not start a drag (see mouseDragged); the offer buttons work
MerchantScreen.mouseClicked port crates/horizon-client/src/game/trading.rs::Game::merchant_click a press inside the scroller's 139-px track starts the drag (dragging set, merchant_drag follows the pointer), only past seven offers; otherwise the offer buttons are hit-tested
MerchantScreen.TradeOfferButton.extractToolTip inline crates/horizon-client/src/game/trading.rs::Game::draw_merchant item tooltip for cost A, cost B or the result under the hovered offer
MinecartCommandBlockEditScreen.populateAndSendPacket port crates/horizon-client/src/game/command_minecarts.rs::Game::open_cart_command_block a game master's interact opens the editor on the cart's BaseCommandBlock, and the edit is written back to the cart
PageButton.extractContents inline crates/horizon-client/src/game/books.rs::Game::draw_book page arrows with their hover sprites (page_buttons)
1 AbstractFriendsEntryContainerWidget skip:service Mojang friends service UI (friend list, requests, presence): service. Horizon's Friends button opens its own invite-code screen (game/screens.rs)
50 MerchantScreen.extractAndDecorateCostA inline crates/horizon-client/src/game/trading.rs::Game::draw_merchant discount: base count struck through, new count drawn (merchant.rs cost_a)
51 MerchantScreen.mouseScrolled port crates/horizon-client/src/game/trading.rs::Game::merchant_scroll gap: minor: one offer per wheel step; vanilla uses the float scroll amount
52 MerchantScreen.mouseDragged port crates/horizon-client/src/game/trading.rs::Game::merchant_drag the scroller takes presses only past seven offers and picks the nearest one
53 MerchantScreen.mouseClicked port crates/horizon-client/src/game/trading.rs::Game::merchant_click gap: player: clicking the scroller does not start a drag (see mouseDragged); the offer buttons work a press inside the scroller's 139-px track starts the drag (dragging set, merchant_drag follows the pointer), only past seven offers; otherwise the offer buttons are hit-tested
54 MerchantScreen.TradeOfferButton.extractToolTip inline crates/horizon-client/src/game/trading.rs::Game::draw_merchant item tooltip for cost A, cost B or the result under the hovered offer
55 MinecartCommandBlockEditScreen.populateAndSendPacket port crates/horizon-client/src/game/command_minecarts.rs::Game::open_cart_command_block a game master's interact opens the editor on the cart's BaseCommandBlock, and the edit is written back to the cart
56 PageButton.extractContents inline crates/horizon-client/src/game/books.rs::Game::draw_book page arrows with their hover sprites (page_buttons)