Skip to content

Fix OSR mouse input handling - #1

Open
natanhnrqe wants to merge 1 commit into
techsenger:mainfrom
natanhnrqe:fix/osr-mouse-input
Open

Fix OSR mouse input handling#1
natanhnrqe wants to merge 1 commit into
techsenger:mainfrom
natanhnrqe:fix/osr-mouse-input

Conversation

@natanhnrqe

Copy link
Copy Markdown

Fixes two issues with mouse input handling in OSR mode:

  • Mouse button identity was inferred from the current button-down state. On JavaFX mouse release events, this state is already false, causing secondary button releases to be sent to CEF as left button releases. The button is now determined using MouseEvent.getButton().

  • ScrollEvent was passed to a helper that expects mouse-specific methods such as isMiddleButtonDown(), causing a NoSuchMethodError. Common keyboard modifiers are now handled separately from mouse button state.

Tested with the official CEFFX demo on Windows. Right-click, middle-click, left-click, scrolling, and text selection work correctly, with no mouse wheel JNI exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant