Skip to content

fix(nui-core): forward horizontal mouse wheel to CEF - #4360

Open
BigSmoKe07 wants to merge 1 commit into
citizenfx:masterfrom
BigSmoKe07:fix/nui-horizontal-wheel
Open

BigSmoKe07 wants to merge 1 commit into
citizenfx:masterfrom
BigSmoKe07:fix/nui-horizontal-wheel

Conversation

@BigSmoKe07

@BigSmoKe07 BigSmoKe07 commented Nov 5, 2026 •

Copy link
Copy Markdown

Goal of this PR

Make horizontal scrolling work in NUI. The horizontal wheel (tilt/thumb wheel) and horizontal trackpad gestures currently do nothing on NUI pages.

How is this PR achieving the goal

  1. CefInput.cpp only forwarded WM_MOUSEWHEEL to CEF, so WM_MOUSEHWHEEL never reached the browser.
  2. WM_MOUSEHWHEEL now takes the same SendMouseWheelEventNative path as WM_MOUSEWHEEL. CEF builds the event with ui::MouseWheelEvent from the native message, which already maps WM_MOUSEHWHEEL to a horizontal wheel event.

This PR applies to the following area(s)

FiveM, RedM

Successfully tested on

Game builds: b3889

Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

fixes #3243

Signed-off-by: Guru Saran <gurusarank@icloud.com>
@github-actions github-actions Bot added RedM Issues/PRs related to RedM triage Needs a preliminary assessment to determine the urgency and required action invalid Requires changes before it's considered valid and can be (re)triaged and removed triage Needs a preliminary assessment to determine the urgency and required action labels Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged RedM Issues/PRs related to RedM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Horizontal Scrollwheel does not work in NUI

1 participant