Build on new PC, fix wheel not scrolling

This commit is contained in:
krzosa
2025-12-21 22:04:39 +01:00
parent c8a7c75dbe
commit 79d709d391
6 changed files with 30 additions and 13 deletions

View File

@@ -178,15 +178,16 @@ void OnCommand(Event event) {
if (event.xwheel || event.ywheel) {
Vec2I mouse = MouseVec2I();
For(order) {
if (!it->visible) continue;
For (order) {
if (!it->visible) {
continue;
}
bool mouse_in_window = AreOverlapping(mouse, it->total_rect);
if (mouse_in_window) {
View *view = GetView(it->active_view);
view->scroll.y -= (Int)(event.ywheel * 48);
view->scroll.x += (Int)(event.xwheel * 48);
break;
}
}
}