Build on new PC, fix wheel not scrolling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user