winit/src/platform_impl/web/web_sys
Kirill Chibisov 9e6f666616
Refine Window::set_cursor_grab API
This commit renames `Window::set_cursor_grab` to
`Window::set_cursor_grab_mode`. The new API now accepts enumeration
to control the way cursor grab is performed. The value could be: `lock`,
`confine`, or `none`.

This commit also implements `Window::set_cursor_position` for Wayland,
since it's tied to locked cursor.

Implements API from #1677.
2022-06-13 09:43:14 +03:00
..
canvas Run clippy on CI 2022-06-10 13:43:33 +03:00
canvas.rs Refine Window::set_cursor_grab API 2022-06-13 09:43:14 +03:00
event.rs Reverse horizontal scroll direction (#2105) 2022-03-13 14:22:02 +01:00
event_handle.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
media_query_handle.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
mod.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
scaling.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
timeout.rs Run clippy on CI 2022-06-10 13:43:33 +03:00