[PR #7421] [MERGED] Port map: the merchant scroller's press starts the drag #7593

Closed
opened 2026-11-03 07:20:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7421
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/audit-client2-016-click


📝 Commits (1)

  • 0b1c2fb Port map: the merchant scroller's press starts the drag

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 tools/port_map/client2-016.tsv (+1 -1)

📄 Description

The MerchantScreen.mouseClicked note carried "gap: player: clicking the scroller does not start a drag (see mouseDragged)", and that no longer holds: Game::merchant_click sets dragging when the press lands in the scroller's 139-px track (only past seven offers, as vanilla's canScroll), and Game::merchant_drag — the port of mouseDragged — follows the pointer from there. Otherwise the offer buttons are hit-tested.

Only the note changes; the verdict and the citation stay.

Checked with the rebuilt ledger:

PORT_LEDGER_OUT=/tmp/led-audit python3 tools/port_ledger.py map-check tools/port_map/client2-016.tsv
79 rows, no problems.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7421 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/audit-client2-016-click` --- ### 📝 Commits (1) - [`0b1c2fb`](https://github.com/horizon-rust/horizon/commit/0b1c2fbb0f5ca0c820f6ec2d9b3a8123ac9d6159) Port map: the merchant scroller's press starts the drag ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-016.tsv` (+1 -1) </details> ### 📄 Description The `MerchantScreen.mouseClicked` note carried "gap: player: clicking the scroller does not start a drag (see mouseDragged)", and that no longer holds: `Game::merchant_click` sets `dragging` when the press lands in the scroller's 139-px track (only past seven offers, as vanilla's `canScroll`), and `Game::merchant_drag` — the port of `mouseDragged` — follows the pointer from there. Otherwise the offer buttons are hit-tested. Only the note changes; the verdict and the citation stay. Checked with the rebuilt ledger: ``` PORT_LEDGER_OUT=/tmp/led-audit python3 tools/port_ledger.py map-check tools/port_map/client2-016.tsv 79 rows, no problems. ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:20:27 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7593
No description provided.