Skip to content

Fix touch events not working for wasm builds#2302

Merged
tronical merged 2 commits intomasterfrom
simon/patch-winit-for-web-touch-event-position
Mar 28, 2023
Merged

Fix touch events not working for wasm builds#2302
tronical merged 2 commits intomasterfrom
simon/patch-winit-for-web-touch-event-position

Conversation

@tronical
Copy link
Member

@tronical tronical commented Feb 28, 2023

Work around a winit bug for WASM builds by pinning to the exact winit
version and making the coordinates relative again.

@tronical tronical added this to the 1.0.0 milestone Mar 24, 2023
@tronical tronical force-pushed the simon/patch-winit-for-web-touch-event-position branch from 5da3d36 to 7940b99 Compare March 24, 2023 09:14
@tronical tronical requested a review from ogoffart March 27, 2023 09:45
@tronical tronical added a:backend-winit Winit backend (mS,mO) a:platform-wasm browser integration (mO,bT) bug labels Mar 27, 2023
@tronical tronical force-pushed the simon/patch-winit-for-web-touch-event-position branch from 7940b99 to da91f4b Compare March 28, 2023 09:29
Work around a winit bug for WASM builds by pinning to the exact winit
version and making the coordinates relative again.

cc #2424
Use the new winit_handle() function to remove one level of indentation.
@tronical tronical force-pushed the simon/patch-winit-for-web-touch-event-position branch from da91f4b to 34c2fc3 Compare March 28, 2023 09:31
@tronical tronical merged commit 09f269b into master Mar 28, 2023
@tronical tronical deleted the simon/patch-winit-for-web-touch-event-position branch March 28, 2023 09:52
@ogoffart ogoffart removed the bug label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:backend-winit Winit backend (mS,mO) a:platform-wasm browser integration (mO,bT)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants