Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse input in web #1989

Closed
porky11 opened this issue Aug 9, 2021 · 2 comments
Closed

Mouse input in web #1989

porky11 opened this issue Aug 9, 2021 · 2 comments
Labels

Comments

@porky11
Copy link

porky11 commented Aug 9, 2021

When clicking the right mouse button in a web application (wasm), the default right mouse button event of the browser (some menu) overrides the right mouse button event of my application.

@FrankenApps
Copy link

You will probably need the following for your canvas:

<canvas oncontextmenu="return false;"></canvas>

see here for more options (you can utilize those using web_sys on the HtmlCanvasElement that winit created).

@daxpedda
Copy link
Member

daxpedda commented Jun 2, 2023

This was fixed by #2662.

@daxpedda daxpedda closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants