On Web, implement DeviceEvents (#2871)

This commit is contained in:
daxpedda
2023-06-14 10:26:26 +02:00
committed by GitHub
parent 9a9c9b15ba
commit 6300cf915e
8 changed files with 405 additions and 85 deletions

View File

@@ -81,6 +81,10 @@ And please only add new entries to the top of this list, right below the `# Unre
- On Web, use `Window.requestIdleCallback()` for `ControlFlow::Poll` when available.
- **Breaking:** On Web, the canvas size is not controlled by Winit anymore and external changes to
the canvas size will be reported through `WindowEvent::Resized`.
- On Web, respect `EventLoopWindowTarget::listen_device_events()` settings.
- On Web, fix `DeviceEvent::MouseMotion` only being emitted for each canvas instead of the whole window.
- On Web, add `DeviceEvent::Motion`, `DeviceEvent::MouseWheel`, `DeviceEvent::Button` and
`DeviceEvent::Key` support.
# 0.28.6