Skip to content

Commit

Permalink
Fix scrolling in scroll containers (#14702)
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu authored Jun 3, 2024
1 parent 75f3a21 commit ec9c000
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion irr/include/IEventReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ struct SEvent

//! A bitmap of button states. You can use isButtonPressed() to determine
//! if a button is pressed or not.
//! Currently only valid if the event was EMIE_MOUSE_MOVED
u32 ButtonStates;

//! Is the left button pressed down?
Expand Down
2 changes: 2 additions & 0 deletions irr/src/CIrrDeviceOSX.mm
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ - (BOOL)isQuit
ievent.MouseInput.Wheel *= 10.0f;
else
ievent.MouseInput.Wheel *= 5.0f;
ievent.MouseInput.ButtonStates = MouseButtonStates;
postMouseEvent(event, ievent);
break;

Expand Down Expand Up @@ -1048,6 +1049,7 @@ - (BOOL)isQuit
ievent.MouseInput.Event = irr::EMIE_MOUSE_MOVED;
ievent.MouseInput.X = x;
ievent.MouseInput.Y = y;
ievent.MouseInput.ButtonStates = MouseButtonStates;
postEventFromUser(ievent);
}
}
Expand Down
1 change: 1 addition & 0 deletions irr/src/CIrrDeviceSDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ bool CIrrDeviceSDL::run()
#else
irrevent.MouseInput.Wheel = SDL_event.wheel.y;
#endif
irrevent.MouseInput.ButtonStates = MouseButtonStates;
irrevent.MouseInput.Shift = (keymod & KMOD_SHIFT) != 0;
irrevent.MouseInput.Control = (keymod & KMOD_CTRL) != 0;
irrevent.MouseInput.X = MouseX;
Expand Down

0 comments on commit ec9c000

Please sign in to comment.