Skip to content

web: window cursor position is set on mouse click #7513

@rparrett

Description

@rparrett

Bevy version

main

Relevant system information

AdapterInfo { name: "ANGLE (Apple, Apple M1 Max, OpenGL 4.1)", vendor: 4203, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Gl }

chrome, firefox, safari

What you did

(with wasm-server-runner)
cargo run --example 3d_scene --target=wasm32-unknown-unknown

Open javascript console, click canvas, observe error message

What went wrong

ERROR crates/bevy_winit/src/system.rs:182 could not set cursor position: NotSupported(NotSupportedError)

Additional information

This seems sort of harmless, but is very strange.

Doesn't happen in native builds on MacOS, but it seems worth testing other platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorO-WebSpecific to web (WASM) builds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions