-
Notifications
You must be signed in to change notification settings - Fork 927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canvas ID not unique on a web page #2259
Comments
It would have to be done together with Alternative solutions:
|
A related issue is that I'm not entirely familiar with edit: I see most of the discussion around the current design was in this thread: rust-windowing/raw-window-handle#26 (comment) |
I don't think this is really actionable by Winit, outside of assigning random UUIDs ... which I think is unnecessary for most use-cases and the issue described above can be dealt with My stance on this is that this is a larger issue with Please reopen if |
Generating web component that requires winit to create a canvas, we found an issue as winit generates the Id of the canvas based on an auto-incremental number.
So our 2 canvas has the same
data-raw-handle
equals to1
, and using wgpu the fetch of the WindowID is the wrong one.Do you have any suggestion to change the line here:
winit/src/platform_impl/web/event_loop/runner.rs
Line 149 in a438091
Thanks,
Marc-Antoine
The text was updated successfully, but these errors were encountered: