[PR #4272] [CLOSED] Do not step the hotbar with the mouse wheel while a book or sign screen is open #5533

Closed
opened 2026-11-03 05:13:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4272
Author: @DUzzL
Created: 10/30/2026
Status: ❌ Closed

Base: main ← Head: fix/issue-4253-lectern-wheel


📝 Commits (2)

  • 63390b6 Do not step the hotbar with the wheel while a book or lectern screen is open
  • 76eff13 Keep the wheel-screen helper clear of the ticking_chunk doc comment

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game.rs (+20 -0)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4253

Cause: the MouseWheel handler in game.rs stepped the hotbar whenever screen == Playing. The lectern book screen is self.book, not a Screen value, so the wheel still reached the hotbar while the book was open.

Change: a new helper wheel_screen_open skips the hotbar step while self.book or self.sign_edit is open. The sign editor is gated too, because it is a screen in vanilla and the same rule applies. Hotbar scrolling with no screen open is unchanged. A unit test covers book and sign screens.

Tested: cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass. The test open_book_or_sign_screen_blocks_hotbar_wheel passes (run with the filter wheel_screen).

Not tested: no in-game run with a real lectern or sign open. Other overlays (inventory, chat, pause) were not checked for wheel handling. tools/pr_ready.py not run.


🔄 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/4272 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/issue-4253-lectern-wheel` --- ### 📝 Commits (2) - [`63390b6`](https://github.com/horizon-rust/horizon/commit/63390b6c3e917f072e6785e68f231b53cb6d9507) Do not step the hotbar with the wheel while a book or lectern screen is open - [`76eff13`](https://github.com/horizon-rust/horizon/commit/76eff136553c170941baa2e56d39ca235fc4811a) Keep the wheel-screen helper clear of the ticking_chunk doc comment ### 📊 Changes **1 file changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+20 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4253 **Cause:** the `MouseWheel` handler in `game.rs` stepped the hotbar whenever `screen == Playing`. The lectern book screen is `self.book`, not a `Screen` value, so the wheel still reached the hotbar while the book was open. **Change:** a new helper `wheel_screen_open` skips the hotbar step while `self.book` or `self.sign_edit` is open. The sign editor is gated too, because it is a screen in vanilla and the same rule applies. Hotbar scrolling with no screen open is unchanged. A unit test covers book and sign screens. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. The test `open_book_or_sign_screen_blocks_hotbar_wheel` passes (run with the filter `wheel_screen`). **Not tested:** no in-game run with a real lectern or sign open. Other overlays (inventory, chat, pause) were not checked for wheel handling. `tools/pr_ready.py` not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:14 +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#5533
No description provided.