diff --git a/CHANGELOG.md b/CHANGELOG.md index 8239076..5b3faba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] - ReleaseDate +### Fixed + +- Fix scrolling of gem selection dropdown + ## [0.2.3] - 2025-10-29 ### Added @@ -68,8 +72,8 @@ - First release -[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.3...HEAD +[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.3...HEAD [0.2.3]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.2...v0.2.3 [0.2.2]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.1...v0.2.2 [0.2.1]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.0...v0.2.1 diff --git a/src/pob.rs b/src/pob.rs index 3598a9c..2d492b3 100644 --- a/src/pob.rs +++ b/src/pob.rs @@ -121,9 +121,13 @@ impl PoBMode { } AppEvent::MouseWheel { delta } => { if delta > 0.0 { + self.lua_instance + .handle_event(PoBEvent::KeyDown("WHEELUP", false), &mut ctx)?; self.lua_instance .handle_event(PoBEvent::KeyUp("WHEELUP"), &mut ctx)?; } else if delta < 0.0 { + self.lua_instance + .handle_event(PoBEvent::KeyDown("WHEELDOWN", false), &mut ctx)?; self.lua_instance .handle_event(PoBEvent::KeyUp("WHEELDOWN"), &mut ctx)?; }