Skip to content

Process pointer button events when a buttons is already pressed#2838

Merged
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:web-button-2
Jun 2, 2023
Merged

Process pointer button events when a buttons is already pressed#2838
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:web-button-2

Conversation

@daxpedda
Copy link
Copy Markdown
Member

@daxpedda daxpedda commented Jun 2, 2023

When a pointer button is already pressed, new button presses/releases won't go through pointerdown/pointerup, but through pointermove, which is weird, but this PR now handles this correctly.

Along the way I inlined some unnecessary variables and passed button identifiers into MouseButton::Other directly instead of subtracting 3 (I have no clue why this was originally made).

Fixes #2455.
Cc #2475.
Replaces #2731.

@daxpedda daxpedda added the DS - web Affects the Web backend (WebAssembly/WASM) label Jun 2, 2023
@daxpedda daxpedda merged commit d273518 into rust-windowing:master Jun 2, 2023
@daxpedda daxpedda mentioned this pull request Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DS - web Affects the Web backend (WebAssembly/WASM)

Development

Successfully merging this pull request may close these issues.

Web chorded pointer events do not properly send MouseInput events

1 participant